Jump to content

Recommended Posts

Posted

Salut! Am comanda [/makeadmin]:

Spoiler

CMD:makeadmin(playerid, params[])
{
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(PinLogged[playerid] == 0) return SCM(playerid, COLOR_BLUELIGHT, "Trebuie sa introduci codul pin mai intai folosind comanda [/pin] sau sa setezi unul folosind comanda [/setpin].");
    if(IsPlayerConnected(playerid))
    {
         if(PlayerInfo[playerid][pAdmin] >= 7 || EstiFondator(playerid))
        {

Cum as putea ca, aceasta comanda sa fie utilizata de jucatorul cu numele 'Xilescu'?

Posted (edited)

Cauta public-ul EstiFondator in gamemode, sterge-l pentru a evita o eventuala greseala si inlocuieste-l cu acesta.

public EstiFondator(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		new nume[512];
        GetPlayerName(playerid, nume, sizeof(nume));
        if((strcmp(nume, "Xilescu", true) == 0))
        {
		    return 1;
		}
	}
	return 0;
}

 

Edited by Flaviu11
Posted
46 minutes ago, Flaviu11 said:

Cauta public-ul EstiFondator in gamemode, sterge-l pentru a evita o eventuala greseala si inlocuieste-l cu acesta.


public EstiFondator(playerid)
{
	if(IsPlayerConnected(playerid))
	{
		new nume[512];
        GetPlayerName(playerid, nume, sizeof(nume));
        if((strcmp(nume, "Xilescu", true) == 0))
        {
		    return 1;
		}
	}
	return 0;
}

 

Pe langa EstiFondator si Admin 7 sa fie Xilescu. Ceva cu strid parca sau user.

Posted
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
si la EstiFondator(playerid) || strcmp(pname, "Nume", true) == 0))

 

asgood.ro

 

 

 

Posted
La 16.03.2019 la 14:10, FeVosFeR a spus:

Pe langa EstiFondator si Admin 7 sa fie Xilescu. Ceva cu strid parca sau user.

daca ai acel nume, nu este necesar sa ai admin ca sa poti folosi comanda /makeadmin. De exemplu acum te-ai inregistrat cu acel nume si nu ai admin, poti folosi /makeadmin daca numele setat de tine in publicul EstiFondator

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.