29.06.2014, 12:04
Hi guys, once again, on my kick command
CallDelayedKick(giveplayer);
giveplayer must be executed, not the playerid. I cannot use Kick(giveplayer); because server wont send message to the giveplayer. I tried using timer and they are not working with this i created
Also not working..
CallDelayedKick(giveplayer);
giveplayer must be executed, not the playerid. I cannot use Kick(giveplayer); because server wont send message to the giveplayer. I tried using timer and they are not working with this i created
pawn Код:
stock CallDelayedKick(giveplayer) {
KillTimer(kick_gTimer[giveplayer]);
kick_gTimer[giveplayer] = SetTimerEx("DelayedKick", 1000, false, "i", giveplayer);
return 1;
}
pawn Код:
forward DelayedKick(giveplayer);
public DelayedKick(giveplayer) {
if (!IsPlayerConnected(giveplayer)) return 1;
Kick(giveplayer);
return 1;
}