01.11.2014, 11:11
pawn Код:
CMD:giveweapon(playerid,params[])
{
if(PlayerInfo[playerid][Admin] >= 1)
{
new ID;
new GUN;
new AMMO;
if(sscanf(params,"i", ID, GUN, AMMO)) return SendClientMessage(playerid,-1,"{FF0000}AdmUsage: {15FF00}/GiveWeapon [ID] [Gun ID/Part Of Name] [Ammo]");
SendClientMessage(playerid, -1, "{FF0000}AdmCmd: {15FF00}You gave a gun to specified player !");
GivePlayerWeapon(ID, GUN, AMMO);
}
else
{
SendClientMessage(playerid, -1, "{FF0000}ERROR: {15FF00}You are not authorized to use this command !");
}
return 1;
}
- No errors when I compile, when I enter in server, and write : /GiveWeapon 0, it's appear that message : You gave a gun to specified player, but I still don't get any gun !
- Fix?