29.11.2013, 16:42
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;
}
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.