Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDisconnect(playerid,reason) {
- KillTimer(TM_AFK[playerid]);
- MoneyTransfer[playerid]=0;
- if(Player[playerid][pMicroBusWork]) DisablePlayerRaceCheckpoint(playerid);
- KillTimer(LoginTimer[playerid]);
- KillTimer(GodTimer[playerid]);
- GodTimer[playerid]=0;
- LoginTimer[playerid]=0;
- LoginTries[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- KillTimer(flood_tm[playerid]);
- KillTimer(chck_next[playerid]);
- KillTimer(SpectateTimer[playerid]);
- SpectateTimer[playerid]=0;
- KillTimer(TazTimer[playerid]);
- if(Player[playerid][pAutoSchoolS]!=0) DestroyVehicleEx(Player[playerid][pAutoSchoolS]);
- #if defined REMOVEOBJECTS
- if(player_objects_removed{playerid}) player_objects_removed{playerid} = 0;
- #endif
- if(Player[playerid][pAveh]!=0) DestroyVehicleEx(Player[playerid][pAveh]);
- if(Player[playerid][pInSalon]!=0) DestroyVehicleEx(Player[playerid][pSalonVeh]);
- Player[playerid][pBSTO]=0;
- if(Player[playerid][pRentCar]!=0) {
- SetVehicleToRespawnX(Player[playerid][pRentCar]);
- Player[playerid][pRentCar]=0;
- }
- PlayerTextDrawDestroy(playerid, SkinPrice[playerid]);
- PlayerTextDrawDestroy(playerid, CarDoors[playerid]);
- PlayerTextDrawDestroy(playerid, CarSpeed[playerid]);
- PlayerTextDrawDestroy(playerid, CarLights[playerid]);
- PlayerTextDrawDestroy(playerid, CarEngine[playerid]);
- PlayerTextDrawDestroy(playerid, CardDisplay[playerid]);
- PlayerTextDrawDestroy(playerid, CarFuel[playerid]);
- PlayerTextDrawDestroy(playerid, CarHealth[playerid]);
- PlayerTextDrawDestroy(playerid, CarMilage[playerid]);
- PlayerTextDrawDestroy(playerid, ASCarName[playerid]);
- PlayerTextDrawDestroy(playerid, ASCarPrice[playerid]);
- PlayerTextDrawDestroy(playerid, ASCarSpeed[playerid]);
- PlayerTextDrawDestroy(playerid, ASCarColor[playerid]);
- TextDrawDestroy(CarHealth_ico[playerid]);
- TextDrawDestroy(CarMilage_ico[playerid]);
- TextDrawDestroy(CarFuel_ico[playerid]);
- TextDrawDestroy(STODetail_t[playerid]);
- TextDrawDestroy(STOTypeR[playerid]);
- TextDrawDestroy(STOTypeL[playerid]);
- TextDrawDestroy(STOTune_t[playerid]);
- TextDrawDestroy(STOTuneL[playerid]);
- TextDrawDestroy(STOTuneR[playerid]);
- TextDrawDestroy(STOAccept[playerid]);
- TextDrawDestroy(STOExit[playerid]);
- KillTimer(SpeedTimer[playerid]);
- KillTimer(TimerCarDraw[playerid]);
- TimerCarDraw[playerid]=0;
- KillTimer(DriftTimerA[playerid]);
- if(PlayerDriftCancellation[playerid] > 0) KillTimer(PlayerDriftCancellation[playerid]);
- PlayerDriftCancellation[playerid] = 0;
- KillTimer(HealTimerA[playerid]);
- KillTimer(DrugsTimerA[playerid]);
- OnPlayerSave(playerid);
- //-------Delete all cars from user tables
- for(new z=0;z<Player[playerid][pCars];z++)
- for(new pCarInfo:I;I<pCarInfo;++I)
- PlayerCar[playerid][z][I]=0;
- //-----------------------------------------
- if(Player[playerid][pVehPickID]>0) {
- DestroyVehicleEx(Player[playerid][pVehPickID]);
- Delete3DTextLabel(VehNums[Player[playerid][pVehPickID]]);
- }
- for(new pInfo:I;I<pInfo;++I) Player[playerid][I]=0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement