Salut!
Poftim aici:
CMD:kick(playerid, params[])
{
if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelperLevel] >= 2)
{
new rParam[10], id, reason[60], string[126];
//----------------------------------------------------------------------
if(sscanf(params, "s[10]us[60]", rParam, id, reason)) return S(playerid, COLOR_GREY,"Syntax: {FFFFFF}/kick [Option: Silent/NoSilent] [ID/Name] [reason]");
//----------------------------------------------------------------------
else if(id == INVALID_PLAYER_ID) return S(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
//----------------------------------------------------------------------
else if(playerVariables[playerid][pAdminLevel] < playerVariables[id][pAdminLevel]) return S(playerid, COLOR_GREY, "You can't kick an administrator witch have an admin level higher than you.");
//----------------------------------------------------------------------
if(strcmp(rParam, "silent", true) == 0)
{
// silent kick
return 1;
}
else if(strcmp(rParam, "nosilent", true) == 0)
{
// no silent kick
return 1;
}
}
else return S(playerid, RED, "ERROR: You are not a high enough Admin Level to use this command!");
}
N-am testat, nu promit ca merge, dar sigur merge! =))