Does this work?
#1

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>
Код:
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;
}
EDIT:Need ZCMD for this code!
Reply


Messages In This Thread
Does this work? - by Sojo12 - 17.01.2014, 05:13
Respuesta: Does this work? - by Swedky - 17.01.2014, 05:26
Re: Does this work? - by Sojo12 - 17.01.2014, 05:27
Re: Does this work? - by Threshold - 17.01.2014, 06:29
Re: Does this work? - by Sojo12 - 17.01.2014, 06:58
Re: Does this work? - by Threshold - 22.01.2014, 11:09

Forum Jump:


Users browsing this thread: 1 Guest(s)