Rcon Command script not working
#3

Meaning if you make a command i use ZCMD as example.

Code:
CMD:kick(playerid,params[])
{
new Targetid;
if(!IsPlayerAdmin) return SendClientMessage(playerid, -1, "you are not an RCON admin"); //<--IsPlayerAdmin checks if the player is logged in to rcon.
//Proceed command.
if(sscanf(params,"u",Targetid)) return SendClientMessage(playerid,-1,"{ff0000}[Error]:{ffffff} /kick [ID]");//Checking the input, u = userid/name so it searches for a match.
Kick(Targetid); //Kicking the player id that you have typed in.
return 1; //Execute the above code.
}
https://sampforum.blast.hk/showthread.php?tid=599091
Reply


Messages In This Thread
Rcon Command script not working - by brandypol - 20.01.2016, 21:18
Re: Rcon Command script not working - by Vince - 20.01.2016, 21:23
Re: Rcon Command script not working - by yvoms - 20.01.2016, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)