30.09.2015, 20:58
//Edit: Nah write it like this:
PHP код:
forward pumpkinTimer();
new tmp_obj;
public OnGameModeInit()
{
SetTimer("pumpkinTimer", 5 * 60 * 1000, true);
return 1;
}
public pumpkinTimer()
{
if(tmp_obj) DestroyObject(tmp_obj);
new p = random(sizeof(pumpkins));
tmp_obj = CreateObject(19320,pumpkins[p][0],pumpkins[p][1],pumpkins[p][2],0,0,0);
return 1;
}