Jump to content

Question

Posted

Salutare cum sa fac cand un admin/vip are 3 warnuri (la VIP / ADM) sa ia remove ?

  	//----------------------------------------------------------------------
	    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 - Suspended)";
	    //----------------------------------------------------------------------
		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 - Suspended)";
    if(ASts[playerid][AWarns] == 3)
    {
        AccInfo[playerid][Level] = 0;
        GameTextForPlayer(playerid, "~r~Admin Level~n~~w~Suspended", 5000, 4);
    }
    else if(ASts[playerid][AWarns] == 3)
    {
        AccInfo[playerid][Level] = 0;
        GameTextForPlayer(playerid, "~r~Demoted", 5000, 4);
        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~Suspended", 5000, 4);
    }
    else if(AccInfo[playerid][pVWarns] == 3)
    {
   		AccInfo[playerid][pVip] = 0;
        GameTextForPlayer(playerid, "~r~Demoted", 5000, 4);
    	BUD::SetIntEntry(userid, "Vip", 0);
    	BUD::SetIntEntry(userid, "VipWarns", 0);
    }

sau...spunetimi ce sa va arat , sau sa modific...

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

 

5 answers to this question

Recommended Posts

Posted

ba da se poate :)

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

 

Posted

nu am niciun warn...asa e la system WARN LA VIP si la ADMIN cand are 3 warnuri sa ia remove

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

 

Posted

Eu vad ca face asta deja

BUD::SetIntEntry(userid, "Vip", 0);
    	BUD::SetIntEntry(userid, "VipWarns", 0);

 

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

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.