20.09.2009, 13:59
Hi everyone.. in my server there are lots of explosive barrels and when someone explode them they never respawn.. How can i respawn them after they explode..
if (strcmp("/bombs", cmdtext, true, 10) == 0) { CreateObject(id,x,y,z); return 1; }
#include <a_samp>
forward BombTimer();
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Bomb Timer - NY-Gaming.com - [NYRP]Mike.");
print("--------------------------------------\n");
SetTimer("BombTimer", 500, 1); //Bomb System
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/manualbomb", cmdtext, true, 10) == 0)
{
// objects here if u dnt want to wait for the timer
return 1;
}
return 0;
}
public BombTimer()
{
//=============================================[PLACE BOMB OBJECTS HERE]=================================
//=======================================================================================================
return 1;
}
public BombTimer()
{
//=============================================[PLACE BOMB OBJECTS HERE]=================================
DestroyObject(1);
CreateObject(id,x,y,z,x,y,z);
//=======================================================================================================
return 1;
}