Taking guns
#1

I am making a script from 0 and i have now a problem with taking guns ( id 9 - Chainsaw and id 1 - Brass Knuckles)
because when i go GivePlayerWeapon(playerid, 9|1,0); the weapon stays in players invertory!

Can somebody help me :S
Reply
#2

i fixed it, i total forgeted the "SetPlayerAmmo" function :/
Reply
#3

You're doing it wrong, correct format must be:

Код:
GivePlayerWeapon(playerid, weaponid, ammo);
if this didnt help im sorry, you'll have to be more clear next time
Reply
#4

Quote:
Originally Posted by phantomcraft
Посмотреть сообщение
You're doing it wrong, correct format must be:

Код:
GivePlayerWeapon(playerid, weaponid, ammo);
if this didnt help im sorry, you'll have to be more clear next time
That always helps.
Reply
#5

Quote:
Originally Posted by phantomcraft
Посмотреть сообщение
You're doing it wrong, correct format must be:

Код:
GivePlayerWeapon(playerid, weaponid, ammo);
if this didnt help im sorry, you'll have to be more clear next time
i know that is the format!
The "9|1" is the weapon id 9 or id 1 to be more correct that is
GivePlayerWeapon(playerid, 9, 0);
or
GivePlayerWeapon(playerid, 1, 0);
!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)