01.07.2014, 03:24
Hey,
This Tutorial shows you how to make a command to give a player weapon with ammo you want automaticly when they write the command.
1-
The Parameters are :
(playerid) : The id of the player to give the weapon to him
(weaponid) : write the weapon id (not the name of the weapon)
(ammo) : write the ammo of the weapon
Example :
Now, Lets make the command :
That's all.
Hope it worked for you.
Thanks.
This Tutorial shows you how to make a command to give a player weapon with ammo you want automaticly when they write the command.
1-
The Parameters are :
Код:
(playerid, weaponid, ammo)
(weaponid) : write the weapon id (not the name of the weapon)
(ammo) : write the ammo of the weapon
Example :
Код:
GivePlayerWeapon(playerid, 43, 99999); // Gives you camera with ammo of 99999
Код:
CMD:camera(playerid, params[]) { GivePlayerWeapon(playerid, 43, 99999); return 1; }
Hope it worked for you.
Thanks.