Kick() and send message problem.
#4

No, that is not prob. I have same problem, it worked just fine and suddenly *puf* it stopped working, I fixed that by calling custom Kick function send message then set timer for 2 sec to kick player.

This is how it looks now

pawn Код:
stock KickEx(playerid, reason[], increase = 0){
    if(increase) PlayerInfos[playerid][pKicks]++;
    SendClientMessage(playerid, COLOR_RED, reason);
    SetTimerEx("PlayerKick", 2000, false, "d", playerid);
    return 1;
}

function:PlayerKick(playerid){
    Kick(playerid);
    return true;
}
and this is how it looked before

pawn Код:
stock KickEx(playerid, reason[], increase = 0){
    if(increase) PlayerInfos[playerid][pKicks]++;
    SendClientMessage(playerid, COLOR_RED, reason);
    Kick(playerid);
    return 1;
}
Reply


Messages In This Thread
Kick() and send message problem. - by Darth1993 - 26.03.2013, 14:35
Re: Kick() and send message problem. - by Darth1993 - 26.03.2013, 14:41
Re: Kick() and send message problem. - by Darth1993 - 26.03.2013, 14:54
Re: Kick() and send message problem. - by CoaPsyFactor - 26.03.2013, 16:55
Re: Kick() and send message problem. - by park4bmx - 26.03.2013, 16:58
Re: Kick() and send message problem. - by Strike97 - 26.03.2013, 19:01
Re: Kick() and send message problem. - by CoaPsyFactor - 26.03.2013, 19:13
Re: Kick() and send message problem. - by Konstantinos - 26.03.2013, 19:26
Re: Kick() and send message problem. - by GoldZoroGrab - 26.03.2013, 19:53
Re: Kick() and send message problem. - by Drebin - 28.03.2013, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)