Jump to content
  • 0

Question

Posted

salutare cand dau cuiva Warn (la vip si admin) si iese depe server si re-intra nu se salveaza warnurile...adica se da la 0:| ce sa fac?

5vRqca4.png

cand e pe server si are warn

[img width=500 height=375] VQvkGPu.png

dupa re-log:|

------------------------------------------------------------------------------------------------------------------

if(ASts[playerid][AWarns] == 3)
    {
        AccInfo[playerid][Level] = 0;
        GameTextForPlayer(playerid, "~r~Admin Level~n~~w~Demoted", 5000, 4);
    }
    else if(ASts[playerid][AWarns] == 3)
    {
        AccInfo[playerid][Level] = 0;
        GameTextForPlayer(playerid, "~r~Demoted", 5000, 4);
        userid = BUD::GetNameUID(PlayerName2(player1));
        BUD::SetIntEntry(userid, "Admin", 0);
        BUD::SetIntEntry(userid, "AdmWarns", 0);
    }
    //--------------------------------------------------------------------------
    if(AccInfo[playerid][pVWarns] == 3)
    {
    	AccInfo[playerid][pVip] = 0;
        GameTextForPlayer(playerid, "~r~VIP Level~n~~w~Demoted", 5000, 4);
    }
    else if(AccInfo[playerid][pVWarns] == 3)
    {
   		AccInfo[playerid][pVip] = 0;
        GameTextForPlayer(playerid, "~r~Demoted", 5000, 4);
        userid = BUD::GetNameUID(PlayerName2(player1));
    	BUD::SetIntEntry(userid, "Vip", 0);
    	BUD::SetIntEntry(userid, "VipWarns", 0);
    }
BUD::GetStringEntry(userid, "AdmVipWarns", AVW, 20);
	sscanf(AVW, "p</>ii", ASts[playerid][AWarns], AccInfo[playerid][pVWarns]);
asta e la stock LoginPlayer(playerid) -----------------------------------------------------------------------------------------------------------------------------
if(ASts[playerid][AWarns] == 0) suspend = " ";
	else if(ASts[playerid][AWarns] == 1) suspend = "{FF0000}(1 Warn)";
	else if(ASts[playerid][AWarns] == 2) suspend = "{FF0000}(2 Warns)";
	else if(ASts[playerid][AWarns] == 3) suspend = "{FF0000}(3 Warns - Demoted)";
	else if(ASts[playerid][AWarns] > 3)  suspend = " ";
	//--------------------------------------------------------------------------
	if(AccInfo[playerid][pVWarns] == 0) vsuspnd = "";
	else if(AccInfo[playerid][pVWarns] == 1) vsuspnd = "{FF0000}(1 Warn)";
	else if(AccInfo[playerid][pVWarns] == 2) vsuspnd = "{FF0000}(2 Warns)";
	else if(AccInfo[playerid][pVWarns] == 3) vsuspnd = "{FF0000}(3 Warns - Demoted)";
	else if(AccInfo[playerid][pVWarns] > 3) vsuspnd = " ";
asta la stock ShowStats(playerid) ----------------------------------------------------------------------------------------------------------------------------------
if(AccInfo[issuerid][pVWarns] < 3)
		{
			GameTextForPlayer(issuerid, "~r~+1 Warn~n~~y~By Rcon~n~~r~Admin", 3000, 3);
		}
		else if(AccInfo[issuerid][pVWarns] == 3)
		{
			AccInfo[issuerid][pVip] = 0;
			GameTextForPlayer(issuerid, "~r~WARNED~n~~y~You have~n~~y~3 Warns~n~~r~VIP DEMOTED", 3000, 3);
			userid = BUD::GetNameUID(PlayerName2(player1));
			BUD::SetIntEntry(userid, "Vip", 0);
    		BUD::SetIntEntry(userid, "VipWarns", 0);
		}
asta la CMD:setpwarn ------------------------------------------------------------------------------------------------------------------ si...
if(ASts[playerid][AWarns] < 3)
		{
			GameTextForPlayer(issuerid, "~r~+1 Warn~n~~y~By Rcon~n~~r~Admin", 3000, 3);
		}
  		else if(ASts[playerid][AWarns] == 3)
		{
			AccInfo[issuerid][Level] = 0;
			GameTextForPlayer(issuerid, "~r~WARNED~n~~y~You have~n~~y~3 Warns~n~~r~ADMIN DEMOTED", 3000, 3);
			userid = BUD::GetNameUID(PlayerName2(player1));
			BUD::SetIntEntry(userid, "Admin", 0);
    		BUD::SetIntEntry(userid, "AdmWarns", 0);
		}

la CMD:setadminwarn

---------------------------------------------------------------------------------------------------------------

ce sa fac sa mi se salveze warnurile de genul 1 si 2 ca la 3 se da demote :D

Daca nu ati inteles ceva...lasati reply:) si va explic

Mersi anticipat

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

6 answers to this question

Recommended Posts

Posted

Daca ai comanda /warn (pentru playeri...)in gamemode si ii dai de proba unui player warn,vezi zi sa se logheze iar daca se salveaza fa la fel si cu /setpwarn si /setadminwarn.

 

 

Posted

adrian...te rog eu nu mai posta la topicurile mele lasai pe altii sa posteze:|

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

Vezi daca gasesti BUD::SetIntEntry(userid, "VipWarns", AccInfo[playerid][pVWarns]); asta cred ca salveaza

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

nu...nu gasesc niciun BUD::SetIntEntry(userid, "VipWarns", AccInfo[playerid][pVWarns]); unde ar trebui sa fie ?

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

nu...nu gasesc niciun BUD::SetIntEntry(userid, "VipWarns", AccInfo[playerid][pVWarns]); unde ar trebui sa fie ?

La functia de salvare a conturilor.

Daca nu reusesti contacteazama pe ID-ul meu personal

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Posted

nu...nu reusesc , poti intra pe mess? tiam lasat mesaj :) ma ai in lista. alexutz_....

EDIT: T/C am rezolvat:D ms gireada

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.