Timers
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(Eventomotos[playerid] == 1)
    {
     for(new i = 0; i < MAX_PLAYERS; i++)
     {

        SetTimer("Paro3",1000,true);
        TogglePlayerControllable(playerid,0);
        SetTimer("Paro",10000,true);
        new string[124];
        format( string, sizeof(string), "~g~ fuera! ");
        GameTextForAll( string, 5000, 3 );
        TogglePlayerControllable(playerid,0);
        SetTimerEx("timer", 10000, false, "i", playerid); //create timer here

     }

    }
    return 1;
}
pawn Код:
public timer(playerid)
{
          new string[124];
          format( string, sizeof(string), "~g~ fuera! ");
        GameTextForAll( string, 5000, 3 );
        TogglePlayerControllable(playerid,TRUE);  
    return 1;
}
Reply


Messages In This Thread
Timers - by Super_Panda - 05.10.2011, 23:44
Re: Timers - by brett7 - 05.10.2011, 23:53
Re: Timers - by Backwardsman97 - 06.10.2011, 00:14
Re: Timers - by Super_Panda - 06.10.2011, 00:21
Re: Timers - by Backwardsman97 - 06.10.2011, 00:40

Forum Jump:


Users browsing this thread: 1 Guest(s)