ID 0 Fucked up..
#3

Quote:
Originally Posted by G4M3Ov3r
View Post
Show me the /kick code. And did this happen before ?
It is ALL commands. And it has never happend before.

However this is the kick command:
pawn Code:
command(kick, playerid, params[])
{
    new id, reason[128], string[ 128 ];
    if( sscanf( params, "us[128]", id, reason) )
    {
        if( Player[playerid][AdminLevel] >= 1 )
        {
            SendClientMessage( playerid, WHITE, "SYNTAX: /kick [playerid] [reason]" );
        }
    }
    else
    {
        if( Player[playerid][AdminLevel] >= 1)
        {
            if(IsPlayerConnected(id) )
            {
                if( Player[id][AdminLevel] > Player[playerid][AdminLevel])
                {
                    SendClientMessage( playerid, WHITE, "You do not have the authority to do that (higher rank)." );
                    return 1;
                }
               
                format( string, sizeof( string ), "Kick: %s has been kicked by %s, reason: %s", GetName(id), Player[playerid][AdminName], reason);
                SendClientMessageToAll(LIGHTRED, string);
                AdminActionsLog( string );
                format( string, sizeof( string ), "You have been kicked from the server for %s", reason);
                SendClientMessage(id, WHITE, string);
                Kick(id);
            }
            else
            {
                SendClientMessage( playerid, WHITE, "That player is not connected." );
                return 1;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
ID 0 Fucked up.. - by The Woody - 29.08.2011, 16:50
Re: ID 0 Fucked up.. - by =WoR=G4M3Ov3r - 29.08.2011, 16:52
Re: ID 0 Fucked up.. - by The Woody - 29.08.2011, 16:53
Re: ID 0 Fucked up.. - by =WoR=Varth - 29.08.2011, 16:56
Re: ID 0 Fucked up.. - by =WoR=G4M3Ov3r - 29.08.2011, 17:01
Re: ID 0 Fucked up.. - by The Woody - 29.08.2011, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)