DKick Error.
#1

I've a problem while using DelayKick well i don't see any messages before i kick the player

PHP код:
        case LDialog:
        {
            new 
string[120];
            if(!
response) {
                
format(string,sizeof(string),"[SERVER]: %s(%d) has been kicked from the server.",GetName(playerid));
                
SendClientMessageToAll(-1,string);
                
DelayedKick(playerid);
                return 
1;
            } 
Should i send the client the message then sendclientmessagetoall next,because i'm sure sending it to all the player should see it too
Reply
#2

did take use of timers?
Reply
#3

What intervals did you used on the DelayedKick function?, Intervals like 500 or 950 is fine.
Reply
#4

Ooooooooh,that's what i forget,thanks guys. all i did was

Код:
forward DelayedKick(playerid);
public DelayedKick(playerid)
{
    Kick(playerid);
    return 1;
}
forgot to set the timer where it happens/should i put it in the delaykick callback?

And why'd they change it? it should of just be the normal kick and it sends the message.
Reply
#5

I have researched this before and I think it is for "security reasons" to prevent the player to receive the server client updates or smh.

And yes, you should put the timer inside the callback (SetTimerEx)
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)