06.01.2012, 18:03
(
Последний раз редактировалось thimo; 08.01.2012 в 18:24.
)
Nvm it is fixed now
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective;
if(GetVehicleModel(vehicleid) == 461 || 462 || 463 || 468 || 471 || 424 || 430 || 448 || 446 || 452 || 457 || 472 || 473 || 481 || 484 || 485 || 486 || 493 || 509 || 510 || 521 || 522 || 523 || 530 || 531 || 539 || 571 || 572 || 581 || 586 || 595)
{
APlayerData[playerid][Windows] = 2;
}
GetVehicleParamsEx(vehicleid, Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective);
SetVehicleParamsEx(vehicleid, 0, Lights, Alarm, Doors, Bonnet, Boot, Objective);
APlayerData[playerid][EngineStarted] = 0;
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
new Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective;
APlayerData[playerid][Windows] = -1;
GetVehicleParamsEx(vehicleid, Engine, Lights, Alarm, Doors, Bonnet, Boot, Objective);
SetVehicleParamsEx(vehicleid, 0, Lights, Alarm, Doors, Bonnet, Boot, Objective);
APlayerData[playerid][EngineStarted] = 0;
return 1;
}
...
if(GetVehicleModel(vehicleid) == 461 || 462 || 463 || 468 || 471 || 424 || 430 || 448 || 446 || 452 || 457 || 472 || 473 || 481 || 484 || 485 || 486 || 493 || 509 || 510 || 521 || 522 || 523 || 530 || 531 || 539 || 571 || 572 || 581 || 586 || 595)
{
...
if(GetVehicleModel(vehicleid) == 461 || 462 == true || 463 == true || ...)
...
switch(GetVehicleModel(vehicleid))
{
case 461, 462, 463, 468, 471, 424, 430, 448, 446, 452, 457, 472, 473, 481, 484, 485, 486, 493, 509, 510, 521, 522, 523, 530, 531, 539, 571, 572, 581, 586, 595:
{
APlayerData[playerid][Windows] = 2;
}
}
...