
Forum




Super Armor GFX
7 replies




*/gfx/weapons/superarmor_d.bmp
*/gfx/weapons/superarmor.bmp
However if you want to change it server-sided--that's a bit difficult.
Potentially what you want to achieve is an image following the player and rotating.



You just need to place an image when the player picks up super-armor (83).
The image has 4 parameters.




When your script is done make sure to add your custom image into "sys/servertransfer.cfg".
Good Luck

@DaKnOb
It means if you pick Super armor theres a GFX like weiwen's turso.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
armorimg={} for i=1,32 do armorimg[i]=0 end addhook("ms100","checkforarmor") function checkforarmor() for _,i in ipairs(player(0,"tableliving")) do if (player(i,"armor")==205 and armorimg[i]==0) then armorimg[i]=image("whateveryourimageis",1,0,200+i) else if (armorimg[i]~=0) then freeimage(armorimg[i]) armorimg[i]=0 end end end end
Eh. There shouldn't be any bugs but if there are, tell me.
I used the ms100 hook to be certain that a player has the super armor, and to account for the setarmor function. It can be done via collect/walkover hooks too.

1
armorimg={}
Yes, you will put the image of the armor in that table, as I showed here:

1
armorimg[i]=image("whateveryourimageis",1,0,200+i)



