[FilterScript] Dynamic Stingers System
#5

Update v1.1.0:


- Added callback:
PHP Code:
//called on vehicle damage updated by stinger
OnVehicleDamageByStinger(playerid,killerid,mobid,old_tires,new_tires); 
- Added function:
PHP Code:
GetPlayerActiveDynamicStinger(playerid);
ToggleDynamicStingerDamage(mobid,bool:toggle); 


- Example code:
PHP Code:
public OnVehicleDamageByStinger(playerid,killerid,mobid,old_tires,new_tires){
    if(
killerid != INVALID_PLAYER_ID && new_tires == 15){
        new 
p_name[MAX_PLAYER_NAME],string[144];
        
GetPlayerName(killerid,p_name,sizeof(p_name));
        
format(string,sizeof(string),"{00AAFF}Your vehicle has been damaged by {00FF00}%s {00AAFF}stinger.",p_name);
        
SendClientMessage(playerid,-1,string);
    }
    return 
1;

Reply


Messages In This Thread
Dynamic Stingers System - by AbyssMorgan - 30.04.2017, 12:57
Re: Dynamic Stingers System - by IlanZ - 30.04.2017, 13:28
Re: Dynamic Stingers System - by JessThompson - 02.05.2017, 08:01
Re: Dynamic Stingers System - by coool - 03.05.2017, 17:06
Re: Dynamic Stingers System - by AbyssMorgan - 17.05.2017, 06:58
Re: Dynamic Stingers System - by JR_Junior - 29.09.2017, 18:44
Re: Dynamic Stingers System - by Meller - 29.09.2017, 18:48
Re: Dynamic Stingers System - by AbyssMorgan - 29.09.2017, 18:49
Re: Dynamic Stingers System - by AzaMx - 30.09.2017, 02:19
Re: Dynamic Stingers System - by Crystallize - 03.10.2017, 04:29
Re: Dynamic Stingers System - by AbyssMorgan - 03.10.2017, 06:15

Forum Jump:


Users browsing this thread: 2 Guest(s)