23.12.2010, 18:15
comand not work
if say me invalid id or wrong usage but it not give me the weheapon
if say me invalid id or wrong usage but it not give me the weheapon
pawn Код:
dcmd_giveweapon(playerid, params[])
{
new id, weapon, ammo;
if (strlen(params))
{
id = strval(params); weapon = strval(params); ammo = strval(params);
if (IsPlayerConnected(id))
{
GivePlayerWeapon(id, weapon, ammo);
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Player Not Found");
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Usage: /giveweapon [playerid] [weaponid] [ammo]");
}
return 1;
}