fail... :O
#1

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;
}
Reply


Messages In This Thread
fail... :O - by `FuTuRe- - 22.01.2010, 17:58
Re: fail... :O - by KnooL - 22.01.2010, 18:02
Re: fail... :O - by Joe Staff - 22.01.2010, 18:05
Re: fail... :O - by `FuTuRe- - 22.01.2010, 18:08
Re: fail... :O - by Joe Staff - 22.01.2010, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)