04.06.2017, 00:07
(
Последний раз редактировалось Loinal; 04.06.2017 в 16:32.
)
fixed
CMD:give(playerid, params[]) { if(pData[playerid][Admin] >= 3) { new pid; new str[250]; if(sscanf(params, "us[64]", pid, params)) return SendClientMessage(playerid, COLOR_MESSAGE_YELLOW, "USAGE: /give [Player ID] [Any Thing]"); if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, COLOR_MESSAGE_YELLOW, "PlayerID is not connected."); PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); PlayerPlaySound(pid, 1057, 0.0, 0.0, 0.0); format(str, sizeof(str), "* Admin %s (ID:%d) gave %s (ID: %d) %s",GetName(playerid),playerid,GetName(pid),pid,pa rams); SendClientMessageToAll(0xB9FF00FF, str); format(str,sizeof(str),"~g~~h~%s",params); GameTextForPlayer(pid,str,3000,4); new irc[130]; format(irc,sizeof(str),"0,13* Admin %s (ID:%d) gave %s (ID: %d) %s",GetName(playerid), playerid, GetName(pid),pid,params); IRC_GroupSay(groupID, IRC_CHANNEL, irc); return 1; } else return ShowMessage(playerid,COLOR_YELLOW,1,3); } |
CMD:commandname( playerid, params[] ) { ..... ... return 1; }