26.10.2011, 22:53
Is this Right cause I am Fireteam 2 But I still get Ejected From the vehicle
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new Vehicle = GetPlayerVehicleID(playerid);
if( Vehicle == FiremanVehicle1 && PlayerInfo[playerid][pFireTeam] >= 2)
{
SendClientMessage(playerid, 0x33AA33AA, "You Are Not On Fire Duty");
RemovePlayerFromVehicle(playerid >= FiremanVehicle1);
}
else
{
if(newstate == PLAYER_STATE_PASSENGER)
{
format(string, sizeof(string), "You Entered A %s, Owned By AFD", VehicleNames[GetVehicleModel(Vehicle) -400]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
}
}