Car doors and hood
#9

PHP код:
new panels,doors,lights,tires;
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
printf("Vehicle Status : [Panels] : %d - [Doors] : %d - [Lights] : %d - [Tires] : %d",panels,doors,lights,tires); 
https://sampwiki.blast.hk/wiki/GetVehicleDamageStatus

You'll get all the info you need.

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/vehdamage"true) == 0)
    {
        new 
panels,doors,lights,tires;
        if(
IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,0x00FF00AA,"You're in a vehicle.");
        
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
        
printf("Vehicle Status : [Panels] : %d - [Doors] : %d - [Lights] : %d - [Tires] : %d",panels,doors,lights,tires);
        }
        return 
1;
    }
    return 
0;

Reply


Messages In This Thread
Car doors and hood - by Dr - 12.09.2011, 03:08
Re: Car doors and hood - by Marricio - 12.09.2011, 03:19
Re: Car doors and hood - by =WoR=G4M3Ov3r - 12.09.2011, 03:24
Re: Car doors and hood - by Marricio - 12.09.2011, 03:26
Re: Car doors and hood - by =WoR=G4M3Ov3r - 12.09.2011, 03:28
Re: Car doors and hood - by Marricio - 12.09.2011, 03:29
Re: Car doors and hood - by =WoR=G4M3Ov3r - 12.09.2011, 03:31
Re: Car doors and hood - by Dr - 12.09.2011, 03:32
Re: Car doors and hood - by =WoR=G4M3Ov3r - 12.09.2011, 03:35
Re: Car doors and hood - by Marricio - 12.09.2011, 03:36

Forum Jump:


Users browsing this thread: 1 Guest(s)