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;
}