Vice City Multiplayer

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

Title: Umm Sansan hgetwep?
Post by: Force on July 26, 2008, 02:01:52 pm
I'm just wondering what the following alias could be used for:

Code: [Select]
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, 01: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, 01:29:01 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, 02:55:08 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 :)