Author Topic: Umm Sansan hgetwep?  (Read 3649 times)

0 Members and 1 Guest are viewing this topic.

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Umm Sansan hgetwep?
« 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 :)

Offline bakasan

  • VC:MP Developer
  • Made Man
  • *
  • Posts: 169
    • View Profile
Re: Umm Sansan hgetwep?
« Reply #1 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 ._.

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Umm Sansan hgetwep?
« Reply #2 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

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Umm Sansan hgetwep?
« Reply #3 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 :)