Jump to content

Cerere Tutorial - Sistem Admin


Recommended Posts

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!

Link to comment
Share on other sites

  • 6 months later...
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 АЖФ.[]
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.