My timed kill command isn't working.
#7

Uhh
He should do SetTimerEx...
pawn Код:
forward killedplayer(playerid);
public killedplayer(playerid)
{
    SetPlayerHealth(playerid, 0.000);
    return 1;
}
YCMD:killme(playerid, params[])
{
    if(gPlayerLoggedIn[playerid] == 0) return 1;
    {
        SendClientMessage(playerid, COLOR_LIGHTRED,"Warning: You will get self-killed after 10-15 seconds...");
        SetTimer("killedplayer", 14000, false,"i",playerid);
        TogglePlayerControllable(playerid, 0);
    }
    return 1;
}
Reply


Messages In This Thread
My timed kill command isn't working. - by PlayHard - 31.12.2011, 14:36
Re: My timed kill command isn't working. - by Mosslah - 31.12.2011, 14:40
Re: My timed kill command isn't working. - by suhrab_mujeeb - 31.12.2011, 14:40
Re: My timed kill command isn't working. - by Norck - 31.12.2011, 14:41
Re: My timed kill command isn't working. - by suhrab_mujeeb - 31.12.2011, 14:43
Re: My timed kill command isn't working. - by NeverKnow - 31.12.2011, 14:47
Re: My timed kill command isn't working. - by FireCat - 31.12.2011, 14:48
Re: My timed kill command isn't working. - by NeverKnow - 31.12.2011, 14:49
Re: My timed kill command isn't working. - by Norck - 31.12.2011, 14:50
Re: My timed kill command isn't working. - by PlayHard - 31.12.2011, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)