Venox Posted October 16, 2019 Report Share Posted October 16, 2019 Salut, am si o intrebare pot sa pun la comanda /setadmin sa aiba acces admin 7+ un player gm burned Quote Link to comment Share on other sites More sharing options...
0 ScrowL Posted October 17, 2019 Report Share Posted October 17, 2019 (edited) if(PlayerInfo[playerid][pAdmin] < 7) return SendError(playerid, "Nu deti level-ul corespunzator"); Mna,probabil ca acolo "pAdmin" este altfel definit,eu am dat doar un exemplu. Ia-te dupa el. Edited October 17, 2019 by ScrowL Quote Link to comment Share on other sites More sharing options...
0 Edyyy. Posted October 17, 2019 Report Share Posted October 17, 2019 Mama, este si greu, faci o verificara daca are admin mai mic de 7 sa-i returneze un mesaj if(PlayerInfo[playerid][pAdmin] < 7) return SCM(playerid, -1, "Nu ai acces la aceasta comanda"); foarte greu Quote Link to comment Share on other sites More sharing options...
0 RaulDume Posted November 1, 2019 Report Share Posted November 1, 2019 Deci , depinde daca ai definit SCM(SendClientMessage) Daca il ai definit : if(PLayerInfo[playerid][pAdmin] < 7) return SCM(playerid, -1, "Nu ai acces la aceasta comanda"); Daca nu il ai definit : if(PLayerInfo[playerid][pAdmin] < 7) return SendClientMessage(playerid, -1, "Nu ai acces la aceasta comanda"); Eu sper ca te-am ajutat cu ceva Quote Link to comment Share on other sites More sharing options...
0 khain.dev Posted November 1, 2019 Report Share Posted November 1, 2019 O metoda mai simpla si mai usoara #define acmd(%0) if(info[playerid][pAdmin] < %0) return 1; Si folosesti deja in comanda CMD:setadmin(playerid) { acmd(7); .... return 1; } Quote Link to comment Share on other sites More sharing options...
0 s4uriK.Official Posted November 17, 2019 Report Share Posted November 17, 2019 La 01.11.2019 la 20:32, K H A I N a spus: O metoda mai simpla si mai usoara #define acmd(%0) if(info[playerid][pAdmin] < %0) return 1; Si folosesti deja in comanda CMD:setadmin(playerid) { acmd(7); .... return 1; } super easy. o recomand pe asta Quote Serverul meu de Discord: Click aici Link to comment Share on other sites More sharing options...
Question
Venox
Salut, am si o intrebare pot sa pun la comanda /setadmin sa aiba acces admin 7+ un player
gm burned
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.