11.12.2009, 11:30
Create another function that sets the that timer (saveweapon). Then OnPlayerSpawn set a timer (new one) for 20 seconds that calls the function (the one you created).
Untested
Untested
pawn Код:
// Top of script
forward DelayTimer(/*playerid*/);
public DelayTimer(/*playerid*/)
{
/*new
name[20];
GetPlayerName(playerid, name, 20);
printf("[Update] Player %s has spawned, and retreived their weapons!", Name);*/
SetTimer("saveweapon", 1000, true);
return true;
}
public OnPlayerSpawn(playerid)
{
SetTimer("DelayTimer(/*playerid*/)", 20000, false); // My bad =P
return true;
}