Problem with converting
#6

Thanks it works but what with others?
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);
Reply


Messages In This Thread
Converting problem Please Help Me - by Vladimir124 - 02.03.2015, 10:09
Re: Problem with converting - by JeaSon - 02.03.2015, 10:14
Re: Problem with converting - by Vladimir124 - 02.03.2015, 10:20
Re: Problem with converting - by JeaSon - 02.03.2015, 10:25
Re: Problem with converting - by ATGOggy - 02.03.2015, 10:26
Re: Problem with converting - by Vladimir124 - 02.03.2015, 10:43

Forum Jump:


Users browsing this thread: 2 Guest(s)