VehicleHealth HELPPP
#3

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    switch(GetVehicleModel(vehicleid))
    {
        case 402, 487, 541, 560: SetVehicleHealth(vehicleid, 1500);
        case 596, 599: SetVehicleHealth(vehicleid, 2000);
        case 470, 490, 497: SetVehicleHealth(vehicleid, 2500);
        case 433, 601: SetVehicleHealth(vehicleid, 4000);
        case 528: SetVehicleHealth(vehicleid, 5000);
        case 427: SetVehicleHealth(vehicleid, 7500);
        case 432: SetVehicleHealth(vehicleid, 10000);
       
    }
    return 1;
}
When a vehicle re-spawns, no players are in. You probably posted the wrong code and I don't understand what exactly you want.

Quote:
Originally Posted by Brandon_More
Посмотреть сообщение
pawn Код:
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_ONFOOT)
|| << Means OR

&& << Means and


Noob SKYPE ME
Did you also take a look at the rest of the code? newstate, playerid, oldstate will be 0. So whatever you do: either || or &&, none of them will work.
Reply


Messages In This Thread
VehicleHealth HELPPP - by yaron0600 - 29.11.2013, 16:33
Re: VehicleHealth HELPPP - by Brandon_More - 29.11.2013, 16:35
Re: VehicleHealth HELPPP - by Konstantinos - 29.11.2013, 16:42
Re: VehicleHealth HELPPP - by yaron0600 - 29.11.2013, 17:23
Re: VehicleHealth HELPPP - by Konstantinos - 29.11.2013, 17:25
Re: VehicleHealth HELPPP - by dannyk0ed - 29.11.2013, 17:30
Re: VehicleHealth HELPPP - by Konstantinos - 29.11.2013, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)