Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Force on July 26, 2008, 01:01:52 PM

Title: Umm Sansan hgetwep?
Post by: Force on July 26, 2008, 01:01:52 PM
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 :)
Title: Re: Umm Sansan hgetwep?
Post by: bakasan on July 27, 2008, 12:26:52 AM
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 ._.
Title: Re: Umm Sansan hgetwep?
Post by: TanaX01 on July 27, 2008, 12:29:01 AM
Quote from: bakasan on July 27, 2008, 12:26:52 AM
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
Title: Re: Umm Sansan hgetwep?
Post by: Force on July 27, 2008, 01:55:08 AM
Quote from: bakasan on July 27, 2008, 12:26:52 AM
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 :)