FireTruck and throwing water
#1

Hello, can I block throwing water by FireTruck ?
Reply
#2

As long as i know, there no function for it
Reply
#3

Humm... Actually you can't but, you can do some actions as removing player from vehicle or kill him while he's doing it.

Try this :


PHP код:
#define HOLDING(%0) \
    
((newkeys & (%0)) == (%0))
    
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys) {
    if(
HOLDING(KEY_FIRE) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 407) {
       
        
//Your punishement
    
return 1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)