03.05.2011, 21:58
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new carid = GetVehicleModel(vehicleid)
if(carid == 520 || carid == 432)
{
RemovePlayerFromVehicle(playerid);
SetPlayerHealth(playerid, 0);
return 1;
}
return 1;
}
Caso nгo, use o debaixo:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new carid = GetVehicleModel(vehicleid)
if(carid == 520)
{
RemovePlayerFromVehicle(playerid);
SetPlayerHealth(playerid, 0);
return 1;
}
if(carid == 432)
{
/*FUNЗГO AQUI*/
return 1;
}
return 1;
}