01.10.2015, 14:28
PHP код:
forward pumpkinTimer();
public pumpkinTimer()
{
new string [128];
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);
format (string,sizeof ( string ), " a pumpkin was spawned in next coordonate: %f and %f ",pumpkins[p][0],pumpkins[p][1]);
SendClientMessageToAll (-1,string);
return 1;
}