21.12.2009, 14:08
You said you want it to be called everytime a explosion is made? Well that is easy, just make another function.
Use that code instead, its the same as CreateExplosion but it calls the fire department. You need to edit it a little depending on your code.
NOTE: Not tested :P
pawn Код:
forward ExplosionFireDepartment(Float:X, Float:Y, Float:Z, type, Float:Radius);
public ExplosionFireDepartment(Float:X, Float:Y, Float:Z, type, Float:Radius)
{
CreateExplosion(X, Y, Z, type, Radius);
for(new i=0; <MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gTeam[i]==TEAM_FIREMAN)
{
SendClientMessage(i, color, "[DISPATCH]Fire at LOL! Follow the checkpoint!");
SetPlayerCheckpoint(i, X, Y, Z);
}
}
return 1;
}
NOTE: Not tested :P

