28.07.2010, 06:52
Hmmm, try that way:
Hope it works
pawn Код:
//Under OnGameModeInit:
forward Explosion (playerid);
public Explosion (playerid)
{
SendClientMessage(playerid, red, "Explosion happens at 18:25");
new hour, minutes;
GetPlayerTime(playerid, hour, minutes);
if(hour == 17 && minutes == 10)
{
SendClientMessageToAll(red, "WARNING: EXPLOSION COMING IN 35SECONDS");
}
else if(hour == 18 && minutes == 25)
{
CreateExplosion(2034.5475,1831.8447,11.8979,7,900);
}
return 1;
}
//Under OnPlayerSpawn add only this:
Explosion(playerid);

