[Tutorial] How to make a Simple Weapon Command with Ammo
#1

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, weaponid, ammo)
(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 :

Код:
GivePlayerWeapon(playerid, 43, 99999); // Gives you camera with ammo of 99999
Now, Lets make the command :

Код:
CMD:camera(playerid, params[])
{
    GivePlayerWeapon(playerid, 43, 99999);
    return 1;
}
That's all.
Hope it worked for you.
Thanks.
Reply


Messages In This Thread
How to make a Simple Weapon Command with Ammo - by kirostar - 01.07.2014, 03:24
Re: How to make a Simple Weapon Command with Ammo - by Faix - 02.07.2014, 14:28
Re: How to make a Simple Weapon Command with Ammo - by PrivatioBoni - 02.07.2014, 14:29
Re: How to make a Simple Weapon Command with Ammo - by SHE790 - 02.07.2014, 14:31
Re: How to make a Simple Weapon Command with Ammo - by Brezon - 02.07.2014, 15:25
Re: How to make a Simple Weapon Command with Ammo - by kirostar - 03.07.2014, 02:34

Forum Jump:


Users browsing this thread: 1 Guest(s)