• Welcome to Vice City Multiplayer.
 

Umm Sansan hgetwep?

Started by Force, July 26, 2008, 12:01:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Force

I'm just wondering what the following alias could be used for:


alias vcmp.hgetwep !return $gettok($hget(vcmp,players. $+ $1),10,32)


If ya have any ideas let me know please :)

bakasan

get the weapon id from the weapon a player is currently holding

so var %wep = $vcmp.hgetwep(1)

would put the weapon id of the weapon player id 1 is holding

used for the save weapon feature in rpgdm and various other things ._.

TanaX01

Quote from: bakasan on July 26, 2008, 11:26:52 PM
get the weapon id from the weapon a player is currently holding

so var %wep = $vcmp.hgetwep(1)

would put the weapon id of the weapon player id 1 is holding

used for the save weapon feature in rpgdm and various other things ._.

thx bakasan

Force

Quote from: bakasan on July 26, 2008, 11:26:52 PM
get the weapon id from the weapon a player is currently holding

so var %wep = $vcmp.hgetwep(1)

would put the weapon id of the weapon player id 1 is holding

used for the save weapon feature in rpgdm and various other things ._.

Thanks,

That must mean I can save these to a hash table for each player and then reset them once they have finished the Sniper's Mini Game :)