Disconnect a player
#1

Hello,

how can I disconnect a player from a command?

Thanks.
Reply
#2

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
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)