05.07.2015, 02:38
... i'm trying to make a fireman job , when the player shot on fire object with the fire extinguisher to stop it
Is working with every gun with a crosshair but with the extingguisher is not working ..
( Foc = fire in romanian)
Any way to know when the player shot with extinguisher on fire object ? ..
Is working with every gun with a crosshair but with the extingguisher is not working ..
( Foc = fire in romanian)
Код:
for(new id = 0; id < 20; id++) { if(hittype == 4) { if(hitid == FocObject[playerid][id]) { if(FireAvailable[playerid][id] == 0) { printf("Called 2"); new playa = FireWorkWith[playerid]; FocRamas[playerid] --; FocRamas[playa] --; FireAvailable[playerid][id] = 1; FireAvailable[playa][id] = 1; DestroyPlayerObject(playerid, FocObject[playerid][id]); DestroyPlayerObject(playa, FocObject[playa][id]); if(FocRamas[playerid] < 1) { SendClientMessageToAll(-1, " all fires deleted"); } } } } }