30.09.2015, 11:38
pawn Код:
forward pumpkinTimer();
new pTimer;
public OnGameModeInit()
{
pTimer = SetTimer("pumpkinTimer", 5 * 60 * 1000, true);
return 1;
}
public pumpkinTimer()
{
new p = random(sizeof(pumpkins));
CreateObject(19320,pumpkins[p][0],pumpkins[p][1],pumpkins[p][2],0,0,0);
return 1;
}