Help me
#1

Код:
CMD:kick( playerid, params[])
{
    if( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, 0xFF0000FF, " You are not allowed to do that!" );
    new pID,
    reason[ 64 ];
    if( sscanf( params, "us[64]", pID, reason ) ) return SendClientMessage( playerid, -1, " USAGE:/kick [playerid/name] [reason]" );
    if( pID == INVALID_PLAYER_ID ) return SendClientMessage( playerid, 0xFF0000FF, " That player is not connected!" );
    new aName[ MAX_PLAYER_NAME ],
    pName[ MAX_PLAYER_NAME ],
    kickstring[ 128 ];
    GetPlayerName( playerid, aName, MAX_PLAYER_NAME );
    GetPlayerName( pID, pName, MAX_PLAYER_NAME );
    format( kickstring, sizeof( kickstring ), "AdmCmd:%s has kicked %s for : %s", aName, pName, reason );
    SendClientMessageToAll( 0xFF0000FF, kickstring );
    Kick( pID );
    return 1;
	}
This my kick command but add it to ur script and run it and see if u can kick someone it can't y.
Reply
#2

cmon help me
Reply
#3

Do you get an error message or what?
If so, you need to be logged in as an RCON admin.
/rcon login [pass]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)