Timer problem
#2

try this

pawn Код:
forward timer(playerid);
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    if(!IsPlayerAdmin(playerid))
    {
        if (strcmp("/timeout", cmdtext, true, 10) == 0)
        {
            SetPlayerInterior(playerid, 6);
            SetPlayerPos(playerid, 264.6288,77.5742,1001.0391);
            SendClientMessage(playerid, COLOR_BRIGHTRED,"You got a time out");
            SetTimerEx("timer", 30000, 0, "i", playerid);
        }
    }
    return 0;
}
pawn Код:
public timer(playerid)
{
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1546,-1676,14);
}
And remember the way you made it its only for a recon admin so remember to /rcon login [pass] before you use it.
Reply


Messages In This Thread
Timer problem - by gangstajoe - 06.03.2010, 17:55
Re: Timer problem - by Pawel2k9 - 06.03.2010, 18:39
Re: Timer problem - by gangstajoe - 06.03.2010, 20:22

Forum Jump:


Users browsing this thread: 3 Guest(s)