Kick
From SA-MP Wiki
Kick
This function can be used to kick a player who currently is in your server.
(playerid)
| playerid | The 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.
