Kick RO
From SA-MP Wiki
Description:
Această funcție poate fi folosită pentru a deconecta un jucător.
(playerid)
playerid | ID-ul jucătorului pe care vrei să-l deconectezi. |
Return Values:
Această funcție nu returnează nici o valoare.
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/kickme", true) == 0) { // Va deconecta jucătorul care execută această comandă Kick(playerid); return 1; } }
Related Functions
The following functions may be useful, as they are 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.