Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Descriere tutorial: Salut ! As dorii un tutorial prin care sa pot creea un sistem de admin, aici ma refer la comanda [/setadmin] si cum il fac funcional,cred ca trebuie facut ceva si prin phpmyadmin . Nu ma injurati, abia m-am apucat de MYSQL :(

Va multumesc!

Posted

Doresti comanda [/setadmin] prin ZCMD?

Da, ZCMD.

sistem login register ai? Si ce variabile folosesti sa ti-o pot configura.

Sistem login / register, este ceva de inceput, si anume intrii bagi parola, si gata.

  • 6 months later...
Posted (edited)
CMD:setadmin(playerid, params[])
{
	new target, level;
	if(PData[playerid][pAdmin] < 4) return SendClientMessage(playerid, -1, "Nu poti folosi aceasta comanda !");
	if(sscanf(params, "ui", target, level)) return SendClientMessage(playerid, -1, "/setadmin [PartOfName/PlayerID] [Admin Level] | /makeadmin  [PartOfName/PlayerID] [Admin Level] ");
	if(!PData[playerid][pAdmin] >= 4)
    {
      	PData[target][pAdmin] = strval(level);
        SendClientMessage(playerid, -1, "L-ai promovat pe x la functia de admin !");
      	SendClientMessage(target, -1, "Adminul y te-a promovat la functia de admin !");
    }
	return 1;
}
      
CMD:makeadmin(playerid, params[])
{
	return cmd_setadmin(playerid, params);
}

 

Edited by АЖФ.[]

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.