14.01.2012, 10:00
Hi, i have Glass DM mode in my server.
If anyone shoot this glass, glassґll destroy.
I want to create spawner of this glass objects (but i have 50 this object !).
Can you help me ?
CreateDynamicObject();
new obj[9];
new check
public OnGameModeInit()
{
obj[0] = CreateDynamicObject();
obj[1] = CreateDynamicObject();
check = SetTimer("Objects",1000,1); // every 1 min
return 1;
}
public OnGameModeExit()
{
KillTimer(check);
return 1;
}
forward Objects();
public Objects();
{
DestroyObject(obj[0]);
DestroyObject(obj[1]);
obj[0] = CreateDynamicObject();
obj[1] = CreateDynamicObject();
return 1;
}