17.10.2013, 09:06
pawn Код:
CMD:giveitem(playerid,params[])
{
if(pInfo[playerid][pAdminLevel] >= 6)
{
new targetid,amount,string[64];
if(sscanf(params, "ris[64]", targetid,amount,string)) return SendClientMessage(playerid,-1,""chat" /giveitem [id] [amount] [item name]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");
AddSlotToInventoryWorld(targetid,string,amount);
new str[144];
format(str,sizeof(str),"*"COL_YELLOW" %s %s has given you "COL_WHITE"%i"COL_GREEN" %s",GetAdminName(playerid),PlayerName(playerid), amount, string);
SendClientMessage(targetid,-1,str);
}
return 1;
}