03.08.2011, 13:56
How can i make /giveweapon cmd?
CMD:giveweapon(playerid, params[])
{
new pID, wID, ammo;
if(!sscanf(params, "uii", pID, wID, ammo))
{
if(wID > 0 && wID < 47)
{
GivePlayerWeapon(pID, wID, ammo);
}
else
{
SendClientMessage(playerid, COLOR, "Weapon ID out of range.");
}
}
else
{
SendClientMessage(playerid, COLOR, "USAGE: /giveweapon [PlayerID/name] [WeaponID] [Ammo]");
}
return 1;
}
if(!sscanf(params, "uii", pID, wID, ammo)
if(!sscanf(params, "uii", pID, wID, ammo))