error with my admin script -.-
#3

ahh kk sorry and its 0.3c hes one of the commands:

pawn Код:
CMD:kick(playerid, params[])
{
    new
        pID,
        reason[70]
    ;
    if(gPlayerData[playerid][E_ADMIN_LEVEL] < 2) return 0;
    else if(sscanf(params, "uS(No reason)[70]", pID, reason)) SendUsage(playerid, "/kick [PLAYER_ID] [REASON]");
    else if(!IsPlayerConnected(pID)) SendError(playerid, "This player is not connected!");
    else if(pID == playerid) SendError(playerid, "You cannot kick yourself.");
    else if(IsHigherAdminLevel(pID, playerid)) SendError(playerid, "This player has a greater admin level then yours!");
    else
    {
        SendClientMessageFormattedToAll(COLOR_YELLOW, ""COL_GREY"[SERVER]{FFFFFF} %s(%d) has been kicked from the server by %s(%d) [Reason: %s]", ReturnPlayerName(pID), pID, ReturnPlayerName(playerid), playerid, reason);
        Kick(pID);
    }
    return 1;
}
it does the same for every command that i tested but not with explode how ever i went to id 64 and it still was exploding me thanks in advance
Reply


Messages In This Thread
error with my admin script -.- - by DaRkAnGeL[NBK] - 23.10.2011, 11:37
Re: error with my admin script -.- - by Wesley221 - 23.10.2011, 11:39
Re: error with my admin script -.- - by DaRkAnGeL[NBK] - 23.10.2011, 11:41
Re: error with my admin script -.- - by Falco-Ger - 23.10.2011, 12:02

Forum Jump:


Users browsing this thread: 2 Guest(s)