I am not passing a integer
#1

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

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;
}
Also not working..
Reply
#2

Here's my /kick
pawn Код:
//under /kick command

    SetTimerEx("KickPlayer",1000,false,"i",ID);

forward KickPlayer(ID);
public KickPlayer(ID)
{
     Kick(ID);
     return 1;
}
Reply
#3

Dude i just realised that i used

CallDelayedKick(giveplayer);

wich is
pawn Код:
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
instead of CallDelayedKick(giveplayerid);

Nevermind, thanks for support LOL
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)