05.07.2011, 19:28
Hello!
i cant get this to work. either you got the message and still can fly, or you not get the message and still can fly, you never gets ejected from the hunter :S
i cant get this to work. either you got the message and still can fly, or you not get the message and still can fly, you never gets ejected from the hunter :S
pawn Код:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
if(GetVehicleModel(vehicleid) == 553)
{
SendClientMessage(playerid, 0x33CCFFAA, "This is a NUCLEAR BOMB plane!!");
SetVehicleHealth(vehicleid, 2000.0);
}
if(GetVehicleModel(vehicleid) == 476)
{
SendClientMessage(playerid, 0x33CCFFAA, "This is a fighter and a bomb plane!");
}
if(GetVehicleModel(vehicleid) == 432)
{
SendClientMessage(playerid, 0x33CCFFAA, "This is a heavy reinforced tank!");
SetVehicleHealth(vehicleid, 3000.0);
}
if(GetVehicleModel(vehicleid) == 425) //hunter
{
if(GetPlayerScore(playerid) > 0 && GetPlayerScore(playerid) < 200)
SendClientMessage(playerid, 0x33CCFFAA, "You need 200 kills to have permission to fly a Hunter!");
RemovePlayerFromVehicle(playerid);
}
return 1;
}