09.05.2015, 11:51
Here are some timers i just piced up.
pawn Код:
// Start the timer that will show timed messages every 2 minutes
SetTimer("Timer_TimedMessages", 1000 * 60 * 2, true);
// Start the timer that will show a random bonus mission for truckers every 5 minutes
SetTimer("ShowRandomBonusMission", 1000 * 60 * 5, true);
// Start the timer that checks the toll-gates
SetTimer("Toll", 1000, true);
SetTimer("GlobalTimer", 1000, true);
public OnFilterScriptInit()//Route 1 length : 4800 secs
{
isferrygoing = 0;
SetTimer("MoveCheck", 1000, true);
SetTimer("FerryToIS", 120000, false);
public MoveCheck(playerid)
{
if(!IsObjectMoving(ferry))
{
if(isferrygoing == 1)
{
//SendClientMessage(playerid, 0x00FF0000, "Ferry is docked to Island");
SetTimer("FerryToLS", 60000, false);
}
else if(isferrygoing == 2)
{
//SendClientMessage(playerid, 0x00FF0000, "Ferry is docked to Los Santos");
SetTimer("FerryToIS", 60000, false);
}
}
return 1;
}