02.03.2015, 10:43
Thanks it works but what with others?
Here is half of the lines
Here is half of the lines
Код:
public OnPlayerDisconnect(playerid, reason) { new textreason[64]; new plname[24]; new playersip[16]; GetPlayerName(playerid, plname, sizeof(plname)); GetPlayerIp(playerid, playersip, sizeof(playersip)); SafeResetPlayerWeapons(playerid); if(PlayerInfo[playerid][pAdminDuty] == 1) { SafeResetPlayerWeapons(playerid); } if(Searching[playerid] == 1) { RemovePlayerMapIcon(playerid, 500 + playerid); Searching[playerid] = 0; } if(Ronned[playerid] >= 1) { KillTimer(RonnTimer[playerid]); } if(PlayerCuffed[playerid]) { KillTimer(cufftimer[playerid]); } if(playerid == beingvoted) { KillTimer(votetimer1); KillTimer(votetimer2); format(string2,sizeof(string2),"[Glasanje]: %s (%d) se izlogovao, glasanje je zavrseno!",plname,playerid); SendClientMessageToAll(TEAM_GROVE_COLOR,string2); votetimer1 = SetTimer("ResetVotation",300000,false); } if(PlayerCuffed[playerid] > 0) { KillTimer(cufftimer[playerid]); } if(Tazer[playerid] == 1) { SafeGivePlayerWeapon(playerid, 24, PreTazerAmmo[playerid]); } Delete3DTextLabel(DutyLabel[playerid]); Delete3DTextLabel(AfkLabel[playerid]); gActivePlayers[playerid]--; numplayers--; RemovePlayerMapIcon(playerid, 37 + playerid); TextDrawDestroy(Textdraw64[playerid]); TextDrawDestroy(Textdraw54[playerid]); TextDrawDestroy(Textdraw53[playerid]); TextDrawDestroy(Textdraw52[playerid]); TextDrawDestroy(Textdraw51[playerid]); TextDrawDestroy(Textdraw49[playerid]); TextDrawDestroy(Textdraw42[playerid]); TextDrawDestroy(Textdraw41[playerid]); TextDrawDestroy(Textdraw40[playerid]); TextDrawDestroy(Textdraw39[playerid]); TextDrawDestroy(Textdraw1[playerid]); KillTimer(TrainTimer[playerid]); KillTimer(MoneyTimer[playerid]); if(IsPlayerInEVehicle[playerid] != 9999) { new i = IsPlayerInEVehicle[playerid]; Seats[i] --; } new string[24]; new d,m,y,h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string, sizeof(string), "%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s); strmid(PlayerInfo[playerid][pLastSeen], string, 0, strlen(string), 255);