Jump to content

[REZOLVAT] Intrebare restrictie


fkbarca
 Share

Recommended Posts

  • Administrator
    if(limitabanuri[playerid] > 0)
    {
        limitabanuri[playerid]--;
        if(banuriinminut[playerid] >= 2)
        {
	    if(PlayerInfo[playerid][pAdmin] == 6) return 1;
            limitabanuri[playerid] = -1;
            PlayerInfo[playerid][pAdmin] = 0;
            banuriinminut[playerid] = 0;
            SCM(playerid, COLOR_SERVER, "Ai primit remove");
        }
    }

 

Link to comment
Share on other sites

    if(limitabanuri[playerid] > 0))
    {
        limitabanuri[playerid]--;
        if(banuriinminut[playerid] >= 2)
        {
            if(PlayerInfo[playerid][pAdmin] == 6) return 1;
            limitabanuri[playerid] = -1;
            PlayerInfo[playerid][pAdmin] = 0;
            banuriinminut[playerid] = 0;
            SCM(playerid, COLOR_SERVER, "Ai primit remove");
        }
    }

 

Edited by TwEnzY.VALOARE

      

Link to comment
Share on other sites

  • Retired

Sa zicem ca ai urmatorul cod: 

	CMD:setadmin(playerid, params[]) {
	new id; 
	if(sscanf(params, "u", id)) return SCM(playerid,-1,"/setadmin [playerid/name]"); 
	if(PlayerInfo[id][pAdmin] == 6) return SCM(playerid,-1,"Nu poti seta admin level pentru administratorii de nivel 6."); //Daca jucatorul caruia vrei sa-i setezi admin are adm 6 nu vei putea face acest lucru. 
	return 1;
	}
	

Daca iei eroare de genu' : "undefinited symbol SCM" inlocuieste cu SendClientMessage sau poti face urmatorul macrou:

#define SCM SendClientMessage

Dar asta e doar un exemplu' 

Edited by Dennis12
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...