SA-MP Forums Archive
Disconnect a player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Disconnect a player (/showthread.php?tid=251541)



Disconnect a player - Ihsan-Cingisiz - 27.04.2011

Hello,

how can I disconnect a player from a command?

Thanks.


Re: Disconnect a player - xir - 27.04.2011

pawn Код:
COMMAND:disconnect(playerid, params[])
{
    new pID;
    if(sscanf(params, "u", pID)) return SendClientMessage(playerid, -1, "Usage: /disconnect <playerid/playername>");
    Kick(pID);
    return 1;
}
This will kick the player, which also disconnects a player, edit this as much as you want


Re: Disconnect a player - Ihsan-Cingisiz - 27.04.2011

Quote:
Originally Posted by xir
Посмотреть сообщение
pawn Код:
COMMAND:disconnect(playerid, params[])
{
    new pID;
    if(sscanf(params, "u", pID)) return SendClientMessage(playerid, -1, "Usage: /disconnect <playerid/playername>");
    Kick(pID);
    return 1;
}
This will kick the player, which also disconnects a player, edit this as much as you want
Oh yeah, :P. How stupid, i never thought on kicking a player. Thanks bTW