24.01.2014, 21:00
Код:
IRCCMD:money(botid, channel[], user[], host[], params[]) { if (IRC_IsHalfop(botid, channel, user)) { new giveid,msg1[100]; if(isnull(params)) return IRC_GroupSay(gGroupID, channel,"3Usage: !money <PlayerName/PlayerID>"); giveid = ReturnUser(params); if(!IsPlayerConnected(giveid))return IRC_GroupSay(gGroupID, channel,"4*** Error: Invalid player ID."); format(msg1,100,"10Money from %s (ID: %d): $%d",pNick(giveid),giveid,GetPlayerMoney(giveid)); IRC_GroupSay(gGroupID,IRC_CHANNEL,msg1); } return 1; }