SA-MP Client Bug [Kick before sending messages]
#3

Thank you , So it isn't a bug , should I try this code byt Kye :
pawn Код:
forward KickPublic(playerid);
public KickPublic(playerid) { Kick(playerid); }
 
stock KickWithMessage(playerid, message[])
{
    SendClientMessage(playerid, 0xFF4444FF, message);
    SetTimerEx("KickPublic", 1000, 0, "d", playerid);     //Delay of 1 second before kicking the player so he recieves the message
}
 
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/kickme", true) == 0)
    {
        //Kicks the player who the executed this command
        KickWithMessage(playerid, "You have been kicked.");
        return 1;
    }
    return 0;
}
I took this from the link you gave me .
Reply


Messages In This Thread
SA-MP Client Bug [Kick before sending messages] - by Saw® - 16.02.2013, 12:47
Re: SA-MP Client Bug [Kick before sending messages] - by dugi - 16.02.2013, 12:57
Re: SA-MP Client Bug [Kick before sending messages] - by Saw® - 16.02.2013, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)