[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
#2

You call this a tutorial?
Reply
#3

tl;dr

https://sampwiki.blast.hk/wiki/GivePlayerWeapon

This is pretty pathetic but it's a nice thing you're trying to do. Also, you need to explain you need ZCMD or face people wondering about errors.

This is the worst tutorial I've seen in a long time but I'm sure you'll improve.
Reply
#4

Lol this is not a tutorial
Reply
#5

So this is a tutorial?
Reply
#6

I'm a new scripter, anyway thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)