22.01.2010, 18:02
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;
}