Posts: 6
Threads: 1
Joined: Jan 2008
Reputation:
0
i wana do a cmd that if i write /winfo, it tells me what kind of weapons the player has, and the ammo..
and i want it to tell me what are the weapons that the player has, even if hes not holding them.. is it possible, and how ?
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
Try GetPlayerWeaponData
there's roughly 13 weapons a person can carry simultaneously I think, so best go with 15. That pawn function returns both weapon id and weapon ammo. REMEMBER: Just because it says a player has 65535 ammo, doesn't mean he has that much, it just means that the server can't get that information from the player
Posts: 6
Threads: 1
Joined: Jan 2008
Reputation:
0
i tryed that cmd, but had no luck, can you direct me a little?
Posts: 6
Threads: 1
Joined: Jan 2008
Reputation:
0
oh thanks!~!
o and last question..
in the cmd you gave me, can i do that itll show me only the weapons he has, and wont show the 0's
Posts: 23
Threads: 2
Joined: Jun 2007
Reputation:
0
sorry for asking this, i realy have no clue
i can't see the cmd code of it, like what Dark-X said (/winfo)
should i add something like this in it?
if (strcmp(cmdtext, "/winfo", true)==0)
or maybe is already added but i'm too amateur to see it