Peršokti į turinį
  • ŽAIDIMAI
  • , ŽAIDIMAI
  • ŽAIDIMAI

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 2950 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Recommended Posts

8 minutes prieš, mariusqw parašė:

Parodyk formatą kokį sukuri.

Ta prasme formatą?

 

public OnPlayerDisconnect(playerid, reason)
{
	if (GetPVarInt(playerid, "RegisterTextDraws"))
	{
	    for(new i; i < MAX_REGISTER_TEXTDRAWS; i++)
	    {
	        PlayerTextDrawHide(playerid, RegisterTextDraw[playerid][i]);
	        PlayerTextDrawDestroy(playerid, RegisterTextDraw[playerid][i]);
	    }
	}
	if (GetPVarInt(playerid, "LogginTextDraws"))
	{
	    for(new i; i < MAX_LOGGIN_TEXTDRAWS; i++)
	    {
	        PlayerTextDrawHide(playerid, LogginTextDraw[playerid][i]);
	        PlayerTextDrawDestroy(playerid, LogginTextDraw[playerid][i]);
	    }
	}
	SetPVarString(playerid, "Password", EOS);
	
	SetPVarInt(playerid, "Gender", -1);
	
	SetPVarInt(playerid, "BirthDateDay", -1);
	SetPVarInt(playerid, "BirthDateMonth", -1);
	SetPVarInt(playerid, "BirthDateYear", -1);

	SetPVarInt(playerid, "LogginAttempts", -1);
	SetPVarInt(playerid, "CurrentPreviewModel", -1);
	
	SetPVarInt(playerid, "RegisterTextDraws", -1);
	SetPVarInt(playerid, "LogginTextDraws", -1);
	
	SetPVarInt(playerid, "LoggedInPlayer", -1);
	SetPVarInt(playerid, "LogginAttempts", 0);

	return 1;
}

Čia visas kodas po callback'u

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 2950 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Svečias
Ši tema yra užrakinta.
  • Šiame puslapyje naršo:   0 nariai

    • Nėra registruotų narių peržiūrinčių šį forumą.

Skelbimai


×
×
  • Sukurti naują...