Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- PlayerInfo[playerid][pOverdose] = 0;
- new string[128];
- // Anti-Fake Kill by Neonman
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- new time = gettime();
- switch(time - LastDeath[playerid])
- {
- case 0..3:
- {
- DeathSpam[playerid]++;
- if(DeathSpam[playerid] == 3) // The maximum spam of deaths after the cheater will get banned.
- {
- new IP[128];
- GetPlayerIp(playerid, IP, sizeof(IP));
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s has been automatically kicked for death spamming.", GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- format(string, sizeof(string), "[Death Spam] %s has been kicked for death spam. (IP: %s)",GetPlayerNameEx(playerid), playerid, IP);
- Log("logs/fakedeath.log", string);
- ShowPlayerDialog(playerid, DIALOG_SHOW_INFO, DIALOG_STYLE_MSGBOX, "{FFFFFF}Kicked from server", "You have been kicked from the server for fake kill.", "Ok", "Cancel");
- SetTimerEx("SendToKick", 300, 0, "i", playerid);
- }
- return 1;
- }
- default: DeathSpam[playerid] = 0;
- }
- LastDeath[playerid] = time;
- }
- if(IsPlayerConnected(killerid))
- {
- new hour,minute,second, weaponname[32];
- gettime(hour,minute,second);
- FixHour(hour);
- hour = shifthour;
- GetWeaponName(reason, weaponname, sizeof(weaponname));
- format(PlayerInfo[playerid][pKillLog9], 256, "%s", PlayerInfo[playerid][pKillLog8]);
- format(PlayerInfo[playerid][pKillLog8], 256, "%s", PlayerInfo[playerid][pKillLog7]);
- format(PlayerInfo[playerid][pKillLog7], 256, "%s", PlayerInfo[playerid][pKillLog6]);
- format(PlayerInfo[playerid][pKillLog6], 256, "%s", PlayerInfo[playerid][pKillLog5]);
- format(PlayerInfo[playerid][pKillLog5], 256, "%s", PlayerInfo[playerid][pKillLog4]);
- format(PlayerInfo[playerid][pKillLog4], 256, "%s", PlayerInfo[playerid][pKillLog3]);
- format(PlayerInfo[playerid][pKillLog3], 256, "%s", PlayerInfo[playerid][pKillLog2]);
- format(PlayerInfo[playerid][pKillLog2], 256, "%s", PlayerInfo[playerid][pKillLog1]);
- format(PlayerInfo[playerid][pKillLog1], 256, "%s", PlayerInfo[playerid][pKillLog0]);
- format(PlayerInfo[playerid][pKillLog0], 256, "(%d:%d:%d) %s killed me with %s", hour,minute,second,GetPlayerNameEx(killerid), weaponname);
- format(PlayerInfo[killerid][pKillLog9], 256, "%s", PlayerInfo[killerid][pKillLog8]);
- format(PlayerInfo[killerid][pKillLog8], 256, "%s", PlayerInfo[killerid][pKillLog7]);
- format(PlayerInfo[killerid][pKillLog7], 256, "%s", PlayerInfo[killerid][pKillLog6]);
- format(PlayerInfo[killerid][pKillLog6], 256, "%s", PlayerInfo[killerid][pKillLog5]);
- format(PlayerInfo[killerid][pKillLog5], 256, "%s", PlayerInfo[killerid][pKillLog4]);
- format(PlayerInfo[killerid][pKillLog4], 256, "%s", PlayerInfo[killerid][pKillLog3]);
- format(PlayerInfo[killerid][pKillLog3], 256, "%s", PlayerInfo[killerid][pKillLog2]);
- format(PlayerInfo[killerid][pKillLog2], 256, "%s", PlayerInfo[killerid][pKillLog1]);
- format(PlayerInfo[killerid][pKillLog1], 256, "%s", PlayerInfo[killerid][pKillLog0]);
- format(PlayerInfo[killerid][pKillLog0], 256, "(%d:%d:%d) Killed %s with %s", hour,minute,second,GetPlayerNameEx(playerid), weaponname);
- if(GetPVarInt(killerid, "IsInArena") == 0) PlayerInfo[killerid][pDMKills]++;
- }
- pTazer[playerid] = 0;
- InsideShamal[playerid] = INVALID_VEHICLE_ID;
- DeletePVar(playerid, "SpeedRadar");
- DeletePVar(playerid, "UsingSprunk");
- if(arr_Wrecking[playerid] != INVALID_VEHICLE_ID)
- {
- //UnwreckVehicle(arr_Wrecking[playerid], 1);
- arr_Wrecking[playerid] = INVALID_VEHICLE_ID;
- }
- DestroyDynamicObject(GetPVarInt(playerid, "neon"));
- DestroyDynamicObject(GetPVarInt(playerid, "neon1"));
- DeletePVar(playerid, "neon0");
- DeletePVar(playerid, "neon1");
- KillTimer(GetPVarInt(playerid, "firstaid5"));
- DeletePVar(playerid, "usingfirstaid");
- DeletePVar(playerid, "usingbandage");
- if(GetPVarInt(playerid, "MovingStretcher") != -1)
- {
- KillTimer(GetPVarInt(playerid, "TickEMSMove"));
- DeletePVar(GetPVarInt(playerid, "MovingStretcher"), "OnStretcher");
- SetPVarInt(playerid, "MovingStretcher", -1);
- }
- if(GetPVarInt(playerid, "runningRadar") >= 1)
- {
- new vehid = gLastCar[playerid];
- if(CheckingSpeed[vehid] > 0)
- {
- KillTimer(CheckingSpeed[vehid]);
- CheckingSpeed[vehid] = 0;
- }
- PlayerTextDrawDestroy(playerid, RadarHud);
- PlayerTextDrawDestroy(playerid, SpeedAndModel);
- DeletePVar(playerid, "runningRadar");
- Radars -= 1;
- }
- new caller = Mobile[playerid];
- if(IsPlayerConnected(Mobile[playerid]))
- {
- SendClientMessageEx(caller, COLOR_GRAD2, "The line went dead.");
- format(string, sizeof(string), "* %s puts away their cellphone.", GetPlayerNameEx(caller));
- ProxDetector(30.0, caller, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- CellTime[caller] = 0;
- KillTimer(VmailTmer[caller]);
- KillTimer(VmailTmer[playerid]);
- Mobile[caller] = INVALID_PLAYER_ID;
- }
- Mobile[playerid] = INVALID_PLAYER_ID;
- CellTime[playerid] = 0;
- KillTimer(VmailTmer[playerid]);
- KillTimer(VmailTmer[caller]);
- RingTone[playerid] = 0;
- foreach(Player, i)
- {
- if(EMSAccepted[i] < 999)
- {
- if(EMSAccepted[i] == playerid)
- {
- EMSAccepted[i] = 999;
- GameTextForPlayer(i, "~w~EMS Caller~n~~r~Has Died", 5000, 1);
- EMSCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- }
- if( GetPVarInt(playerid, "SpecOff" ) == 1 )
- {
- SpawnPlayer(playerid);
- return 1;
- }
- if(GetPVarInt(playerid, "Injured") == 1)
- {
- foreach(new i: Player)
- {
- if(EMSAccepted[i] == playerid)
- {
- EMSAccepted[i] = INVALID_PLAYER_ID;
- GameTextForPlayer(i, "~w~EMS Caller~n~~r~Has Died", 5000, 1);
- EMSCallTime[i] = 0;
- DisablePlayerCheckpoint(i);
- }
- }
- SendClientMessageEx(playerid, COLOR_WHITE, "You appear to be stuck in limbo, medics are trying to revive you.");
- KillEMSQueue(playerid);
- ResetPlayerWeaponsEx(playerid);
- return 1;
- }
- if(GetPVarInt(playerid, "IsOnFire"))
- {
- TogglePlayerBurning(playerid, false);
- return 1;
- }
- new Float:px,Float:py,Float:pz;
- if(GetPVarInt(playerid, "EventToken") == 0)
- {
- if(GetPVarInt(playerid, "IsInArena") == -1)
- {
- SetPVarInt(playerid, "Injured", 1);
- new Float:mX, Float:mY, Float:mZ;
- GetPlayerPos(playerid, mX, mY, mZ);
- SetPVarFloat(playerid, "MedicX", mX);
- SetPVarFloat(playerid, "MedicY", mY);
- SetPVarFloat(playerid, "MedicZ", mZ);
- SetPVarInt(playerid, "MedicVW", GetPlayerVirtualWorld(playerid));
- SetPVarInt(playerid, "MedicInt", GetPlayerInterior(playerid));
- }
- }
- gPlayerSpawned[playerid] = 0;
- if(GetPVarInt(playerid, "IsInArena") >= 0)
- {
- if(GetPVarInt(playerid, "AOSlotPaintballFlag") != -1)
- {
- switch(PlayerInfo[playerid][pPaintTeam])
- {
- case 1:
- {
- DropFlagPaintballArena(playerid, GetPVarInt(playerid, "IsInArena"), 2);
- }
- case 2:
- {
- DropFlagPaintballArena(playerid, GetPVarInt(playerid, "IsInArena"), 1);
- }
- }
- }
- if(reason >= 0 && reason <= 46)
- {
- new weapon[24];
- PlayerInfo[killerid][pKills] += 1;
- PlayerInfo[playerid][pDeaths] += 1;
- if(PlayerInfo[killerid][pPaintTeam] == 1)
- {
- if(PlayerInfo[killerid][pPaintTeam] == PlayerInfo[playerid][pPaintTeam])
- {
- PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTeamRedKills] -= 1;
- PaintBallArena[GetPVarInt(playerid, "IsInArena")][pbTeamBlueKills] += 1;
- SetPlayerHealth(killerid, 0);
- PlayerInfo[killerid][pKills] -= 2;
- PlayerInfo[killerid][pDeaths] += 1;
- PlayerInfo[playerid][pDeaths] -= 1;
- SendClientMessageEx(killerid, COLOR_WHITE, "You have been warned, do not team-kill!");
- }
- else
- {
- PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTeamRedKills] += 1;
- PaintBallArena[GetPVarInt(playerid, "IsInArena")][pbTeamBlueDeaths] += 1;
- }
- }
- if(PlayerInfo[killerid][pPaintTeam] == 2)
- {
- if(PlayerInfo[killerid][pPaintTeam] == PlayerInfo[playerid][pPaintTeam])
- {
- PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTeamBlueKills] -= 1;
- PaintBallArena[GetPVarInt(playerid, "IsInArena")][pbTeamRedKills] += 1;
- SetPlayerHealth(killerid, 0);
- PlayerInfo[killerid][pKills] -= 2;
- PlayerInfo[killerid][pDeaths] += 1;
- PlayerInfo[playerid][pDeaths] -= 1;
- SendClientMessageEx(killerid, COLOR_WHITE, "You have been warned, do not team-kill!");
- }
- PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTeamBlueKills] += 1;
- PaintBallArena[GetPVarInt(playerid, "IsInArena")][pbTeamRedDeaths] += 1;
- }
- GetWeaponName(reason,weapon,sizeof(weapon));
- if(reason == 0)
- {
- if(PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTimeLeft] < 12)
- {
- GivePlayerCash(killerid, 1000);
- format(string,sizeof(string),"[Paintball Arena] %s has earned $1000 bonus for a sudden death kill!",GetPlayerNameEx(killerid));
- SendPaintballArenaMessage(GetPVarInt(killerid,"IsInArena"), COLOR_YELLOW, string);
- }
- format(string,sizeof(string),"[Paintball Arena] %s has killed %s with their bare hands!",GetPlayerNameEx(killerid),GetPlayerNameEx(playerid));
- }
- else
- {
- if(PaintBallArena[GetPVarInt(killerid, "IsInArena")][pbTimeLeft] < 12)
- {
- GivePlayerCash(killerid, 1000);
- format(string,sizeof(string),"[Paintball Arena] %s has earned $1000 bonus for a sudden death kill!",GetPlayerNameEx(killerid));
- SendPaintballArenaMessage(GetPVarInt(killerid,"IsInArena"), COLOR_YELLOW, string);
- }
- format(string,sizeof(string),"[Paintball Arena] %s has killed %s with a %s.",GetPlayerNameEx(killerid),GetPlayerNameEx(playerid),weapon);
- }
- }
- else
- {
- PlayerInfo[playerid][pDeaths] += 1;
- format(string,sizeof(string),"[Paintball Arena] %s has died.",GetPlayerNameEx(playerid));
- }
- SendPaintballArenaMessage(GetPVarInt(playerid,"IsInArena"), COLOR_RED, string);
- }
- PlayerInfo[playerid][pLocal] = 255;
- GetPlayerPos(playerid, px, py, pz);
- if(GetPVarInt(playerid, "Injured") == 0)
- {
- if( GetPVarInt(playerid, "EventToken") >= 1 || GetPVarInt(playerid, "IsInArena") >= 0)
- {
- ResetPlayerWeapons(playerid);
- }
- else
- {
- ResetPlayerWeaponsEx(playerid);
- }
- }
- if(PlayerInfo[killerid][pAdmin] < 2)
- {
- if(reason == 49)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just car-parked the shit out of %s (ID %d) to death.", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- print(string);
- }
- if(reason == 50)
- {
- if(IsAHelicopter(GetPlayerVehicleID(killerid)))
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just blade-killed the shit out of %s (ID %d).", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- print(string);
- }
- else
- {
- if(GetPlayerWeapon(killerid) != 32 || GetPlayerWeapon(killerid) != 28 || GetPlayerWeapon(killerid) != 29)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just car-parked the shit out of %s (ID %d) to death.", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- print(string);
- }
- else
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has possibly just driver-shot the shit out of %s (ID %d) to death.", GetPlayerNameEx(killerid), killerid, GetPlayerNameEx(playerid), playerid);
- ABroadCast(COLOR_YELLOW, string, 2);
- print(string);
- }
- }
- }
- }
- if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
- {
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- }
- if(HaveGPS[playerid])
- {
- KillTimer(GPSTimer[playerid]);
- HaveGPS[playerid] = false;
- GPSTimer[playerid] = 0;
- }
- ClearCrime(playerid);
- if(PlayerInfo[playerid][pHeadValue] >= 1)
- {
- if(IsPlayerConnected(killerid))
- {
- if(GoChase[killerid] == playerid)
- {
- new killer[MAX_PLAYER_NAME],
- name[MAX_PLAYER_NAME], ID;
- new takemoney = PlayerInfo[playerid][pHeadValue] / 4 * 2;
- name = GetPlayerNameEx(playerid);
- killer = GetPlayerNameEx(killerid);
- GivePlayerCash(killerid, takemoney);
- sscanf(PlayerInfo[playerid][pContractBy],"u",ID);
- if(!IsPlayerConnected(ID))
- {
- OnPlayerOfflineLogin(PlayerInfo[playerid][pContractBy]);
- PlayerInfo[MAX_PLAYERS][pAccount] -= takemoney;
- OnPlayerOfflineSave(PlayerInfo[playerid][pContractBy]);
- }
- else
- {
- format(string, sizeof(string), "Hitman %s has fulfilled the contract on %s and you have paid them $%d.",killer,name,takemoney);
- SendClientMessageEx(ID, COLOR_YELLOW, string);
- GivePlayerCash(ID, -takemoney);
- }
- format(string,128,"Hitman %s has fulfilled the contract on %s and collected $%d.",killer,name,PlayerInfo[playerid][pHeadValue] / 4 * 2);
- SendFamilyMessage(8, COLOR_YELLOW, string);
- format(string,128,"You have been critically injured by a hitman.",takemoney);
- ResetPlayerWeaponsEx(playerid);
- // SpawnPlayer(playerid);
- SendClientMessageEx(playerid, COLOR_YELLOW, string);
- // KillEMSQueue(playerid);
- PlayerInfo[playerid][pHeadValue] = 0;
- PlayerInfo[killerid][pCHits] += 1;
- GotHit[playerid] = 0;
- GetChased[playerid] = 999;
- GoChase[killerid] = 999;
- }
- }
- }
- if(IsPlayerConnected(killerid))
- {
- if(GoChase[playerid] == killerid)
- {
- new killer[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME];
- new takemoney = PlayerInfo[playerid][pHeadValue] / 4 * 2;
- GivePlayerCash(killerid, takemoney);
- name = GetPlayerNameEx(playerid);
- killer = GetPlayerNameEx(killerid);
- format(string,128,"Hitman %s has failed the contract on %s and lost $%d.",name,killer,PlayerInfo[killerid][pHeadValue] / 4 * 2);
- SendFamilyMessage(8, COLOR_YELLOW, string);
- GivePlayerCash(playerid, -takemoney);
- format(string,128,"You have just killed a hitman and gained $%d, removing the contact on your head.",PlayerInfo[killerid][pHeadValue] / 4 * 2);
- SendClientMessageEx(killerid, COLOR_YELLOW, string);
- PlayerInfo[killerid][pHeadValue] = 0;
- PlayerInfo[playerid][pFHits] += 1;
- GotHit[playerid] = 0;
- GetChased[killerid] = 999;
- GoChase[playerid] = 999;
- }
- }
- killerid = INVALID_PLAYER_ID;
- SetPlayerColor(playerid,TEAM_HIT_COLOR);
- return 1;
- }
- public OnVehicleDeath(vehicleid)
- {
- new Float:X, Float:Y, Float:Z;
- new Float:XB, Float:YB, Float:ZB;
- VehicleStatus{vehicleid} = 1;
- foreach(Player, i)
- {
- //TextDrawHideForPlayer(i, FuelText[i]);
- if(IsATrailer(vehicleid))
- {
- if(PlayerTruckJob[i][pTDTrailer] == vehicleid)
- {
- new string[128];
- new lostrand = random(10000);
- ClearTruckJob(i);
- SendClientMessageEx(i, COLOR_RED, " * Your trailer has been destroyed, the Trucking Delivery has been canceled.");
- format(string, sizeof(string), " * Failing this delivery has cost you $%d.", lostrand);
- SendClientMessageEx(i, COLOR_RED, string);
- GivePlayerCash(i, -lostrand);
- gPlayerCheckpointStatus[i] = CHECKPOINT_NONE;
- }
- }
- if(InsideShamal[i] == vehicleid)
- {
- GetVehiclePos(InsideShamal[i], X, Y, Z);
- SetPlayerPos(i, X-4, Y-2.3, Z);
- GetVehiclePos(InsideShamal[i], XB, YB, ZB);
- if(ZB > 50.0)
- {
- PlayerInfo[i][pAGuns][GetWeaponSlot(46)] = 46;
- GivePlayerValidWeapon(i, 46, 1);
- }
- PlayerInfo[i][pVW] = 0;
- SetPlayerVirtualWorld(i, 0);
- PlayerInfo[i][pInt] = 0;
- SetPlayerInterior(i, 0);
- InsideShamal[i] = INVALID_VEHICLE_ID;
- SendClientMessageEx(i, COLOR_WHITE, "The airplane has been damaged, you cannot be inside of it");
- }
- if(NeonON[vehicleid] == 1)
- {
- DestroyDynamicObject(GetPVarInt(i, "neon"));
- DestroyDynamicObject(GetPVarInt(i, "neon1"));
- NeonON[vehicleid]=0;
- }
- if(arr_Wrecking[i] == vehicleid)
- {
- //UnwreckVehicle(vehicleid, 1);
- arr_Wrecking[i] = INVALID_VEHICLE_ID;
- }
- if(GetPVarInt(i, "NGPassengerVeh") == vehicleid)
- {
- TogglePlayerSpectating(i, 0);
- }
- }
- arr_Engine{vehicleid} = 0;
- DObject2(obj[vehicleid]);
- DObject3(obj[vehicleid]);
- DObject6(obj[vehicleid]);
- if(IsValidDynamicObject(obj1[vehicleid]) || IsValidDynamicObject(obj2[vehicleid]) || IsValidDynamicObject(obj3[vehicleid]) ||
- IsValidDynamicObject(obj4[vehicleid]) || IsValidDynamicObject(obj5[vehicleid]) || IsValidDynamicObject(obj6[vehicleid]) ||
- IsValidDynamicObject(obj7[vehicleid]) || IsValidDynamicObject(obj8[vehicleid]) || IsValidDynamicObject(obj9[vehicleid])) {
- DestroyDynamicObject(obj1[vehicleid]), DestroyDynamicObject(obj2[vehicleid]), DestroyDynamicObject(obj3[vehicleid]),
- DestroyDynamicObject(obj4[vehicleid]), DestroyDynamicObject(obj5[vehicleid]), DestroyDynamicObject(obj6[vehicleid]),
- DestroyDynamicObject(obj7[vehicleid]), DestroyDynamicObject(obj8[vehicleid]), DestroyDynamicObject(obj9[vehicleid]);
- }
- if(CheckingSpeed[vehicleid] > 0)
- {
- KillTimer(CheckingSpeed[vehicleid]);
- CheckingSpeed[vehicleid] = 0;
- Radars -= 1;
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(PlayerInfo[playerid][pLoggedIn] != 1)
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "ERROR: You are not logged in!");
- Kick(playerid);
- }
- if(strlen(PlayerInfo[playerid][pEmail]) < 3)
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, " We have no email on file for this account, please enter your email below for Password Reset Purposes.");
- ShowPlayerDialog(playerid, DIALOG_SET_EMAIL, DIALOG_STYLE_INPUT, "{FFFFFF}Enter Email", "Please enter your Email address into the box.", "Ok", "Cancel");
- }
- if(PlayerInfo[playerid][pHelper] > 1) SetPVarInt(playerid, "AdvisorDuty", 1); Advisors += 1;
- if(turfWarsRadar[playerid] == 0) {
- ShowTurfWarsRadar(playerid);
- }
- if(!gPlayerLogged{playerid})
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "ERROR: You are not logged in!");
- Kick(playerid);
- return 1;
- }
- Streamer_Update(playerid);
- if(GetPVarInt(playerid, "WreckingGate"))
- {
- DestroyObject(GetPVarInt(playerid, "WreckingGate"));
- DeletePVar(playerid, "WreckingGate");
- return 1;
- }
- if(GetPVarInt(playerid, "NGPassenger") == 1)
- {
- new Float:X, Float:Y, Float:Z;
- GetVehiclePos(GetPVarInt(playerid, "NGPassengerVeh"), X, Y, Z);
- SetPlayerPos(playerid, (X-2.557), (Y-3.049), Z);
- SetPlayerWeaponsEx(playerid);
- GivePlayerValidWeapon(playerid, 46, 1);
- SetPlayerSkin(playerid, GetPVarInt(playerid, "NGPassengerSkin"));
- SetPlayerHealth(playerid, GetPVarFloat(playerid, "NGPassengerHP"));
- SetPlayerArmour(playerid, GetPVarFloat(playerid, "NGPassengerArmor"));
- DeletePVar(playerid, "NGPassenger");
- DeletePVar(playerid, "NGPassengerVeh");
- DeletePVar(playerid, "NGPassengerArmor");
- DeletePVar(playerid, "NGPassengerHP");
- DeletePVar(playerid, "NGPassengerSkin");
- return 1;
- }
- if(InsideShamal[playerid] != INVALID_VEHICLE_ID)
- {
- SetPlayerPos(playerid, GetPVarFloat(playerid, "air_Xpos"), GetPVarFloat(playerid, "air_Ypos"), GetPVarFloat(playerid, "air_Zpos"));
- SetPlayerFacingAngle(playerid, GetPVarFloat(playerid, "air_Rpos"));
- SetPlayerHealth(playerid, GetPVarFloat(playerid, "air_HP"));
- SetPlayerArmour(playerid, GetPVarFloat(playerid, "air_Arm"));
- SetPlayerWeaponsEx(playerid);
- SetPlayerToTeamColor(playerid);
- SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
- DeletePVar(playerid, "air_Xpos");
- DeletePVar(playerid, "air_Ypos");
- DeletePVar(playerid, "air_Zpos");
- DeletePVar(playerid, "air_Rpos");
- DeletePVar(playerid, "air_HP");
- DeletePVar(playerid, "air_Arm");
- SetCameraBehindPlayer(playerid);
- SetPlayerVirtualWorld(playerid, InsideShamal[playerid]);
- return SetPlayerInterior(playerid, 1);
- }
- SyncPlayerTime(playerid);
- if(IsPlayerNPC(playerid)) return 1;
- SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
- STDPlayer[playerid] = 0;
- KillTimer(TimerATACH[playerid]);
- gTeam[playerid] = PlayerInfo[playerid][pTeam];
- if(!gPlayerLogged{playerid}) return Kick(playerid);
- SetPlayerSpawn(playerid);
- SetPlayerWeapons(playerid);
- SetPlayerToTeamColor(playerid);
- PlayerTextDrawShow(playerid, ServerTips);
- PlayerTextDrawShow(playerid, MessagesTD);
- PlayerTextDrawShow(playerid, ServerBanner);
- CheckPH(playerid);
- SetWeaponSkills(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement