17.01.2014, 05:13
Hello folks,today out of boredom i saw a command i tried to make a BAN CMD and idk what took my computer when i compiled there were no errors and im not an scripter i just edit script and learn very small small things so idk how i made the code.Just wanted to check if it really works.I dont have GTA SA installed in my PC.Hence,i cant check so i wanted a volunteer to check it out for me.here is the code>
EDIT:Need ZCMD for this code!
Код:
COMMAND:ban(playerid,params[]) { new targetid,[playerid]; if (PInfo[playerid][Level] > 1 || (!IsPlayerAdmin [playerid] return 0 else if (sscanf(params,"us',targetid,name)SendClientMessage,(playerid,YELLOW,"Usage /ban [playerid]."); else { Ban(targetid) format(string,sizeof(string),"Administrator %s has banned %s[ID:%d]",Name,targetid,n,playerid; SendClientMessageToAll(playerid,PINK,string); } return 1; }