02.12.2014, 12:20
It is possible to send multiple parameters using SetTimerEx. Checkpoint ID can be specified as a parameter while setting a timer, also it's data type should be filled on specifier.
You can also pass other data types, you can have a look at : https://sampwiki.blast.hk/wiki/SetTimerEx
pawn Код:
SetTimerEx("cptimer", 1000, false, "ii", playerid, cpid);
forward cptimer(playerid, cpid);
public cptimer(playerid, cpid)
{
//cpid can be used as the checkpoint ID
return 1;
}