HELP! Auto-Mated Fire Dispatch
#7

You said you want it to be called everytime a explosion is made? Well that is easy, just make another function.

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;
}
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
Reply


Messages In This Thread
HELP! Auto-Mated Fire Dispatch - by [LSR]State_Trooper - 21.12.2009, 10:15
Re: HELP! Auto-Mated Fire Dispatch - by [LSR]State_Trooper - 21.12.2009, 10:18
Re: HELP! Auto-Mated Fire Dispatch - by Rzzr - 21.12.2009, 10:33
Re: HELP! Auto-Mated Fire Dispatch - by [LSR]State_Trooper - 21.12.2009, 10:39
Re: HELP! Auto-Mated Fire Dispatch - by [LSR]State_Trooper - 21.12.2009, 10:50
Re: HELP! Auto-Mated Fire Dispatch - by [LSR]State_Trooper - 21.12.2009, 12:50
Re: HELP! Auto-Mated Fire Dispatch - by lolumadd - 21.12.2009, 14:08
Re: HELP! Auto-Mated Fire Dispatch - by [LSR]State_Trooper - 21.12.2009, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)