Kick

From SA-MP Wiki

Jump to: navigation, search

Kick


This function can be used to kick a player who currently is in your server.


Parameters:
(playerid)
playeridThe ID of the player you want to kick.
This function does not return a specific value.


public OnPlayerCommandText( playerid, cmdtext[] )
{
    if( strcmp( cmdtext, "/kickme", true ) == 0 )
    {
        // Kicks the player who the executed this command
        Kick( playerid );
        return 1;
    }
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

  • Ban: Ban a player from playing on the server.
  • BanEx: Ban a player with a custom reason.
Personal tools
In other languages