Quote:
Originally Posted by Luicy.
PHP код:
// Open a command ofc
CMD:ban(playerid, params[]) { // Notice the "params[]", they're needed.
if(IsPlayerAdmin(playerid)) { // check if player is rcon
new targetid; // empty int
if(sscanf(params, "i", targetid)) { // check if the input was like /ban 0
Ban(playerid); // ban him using the samp func
}
else
SendClientMessage(playerid, -1, "SYNTAX: /ban playerid");
}
return 1;
}
|
are you an idiot? why would you ban the "playerid" instead of the targetid,lol.
Do what the others said and try and understand by yourself and if you get any problems,check back here,
List Of Bans Commands.