22.01.2010, 17:58
The problem is.. when someone leaves any vehicle it notifys that, and it only needs to notify it for the defined vehicles. (PLANE_LS) Etc.
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
new playervehicleid = GetPlayerVehicleID(playerid);
new string[256]; new playername[MAX_PLAYER_NAME];
GetPlayerName (playerid, playername, sizeof(playername));
if(playervehicleid == PLANE_LS || PLANE_SF || PLANE_LS2 || PLANE_SF2 && GetPlayerTeam(playerid) == TEAM_LS || TEAM_SF)
{
format (string, sizeof(string), "%s has left the Infernus!", playername);
TextDrawSetString (text4, string);
TextDrawShowForAll (text4);
PlaySoundForAll(1150);
SetTimer ("Destroy4", 3000, false);
man[playerid] = 0;
return 1;
}
return 1;
}