FeVosFeR Posted March 16, 2019 Report Share Posted March 16, 2019 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'? Quote Link to comment Share on other sites More sharing options...
Flaviu11 Posted March 16, 2019 Report Share Posted March 16, 2019 (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 March 16, 2019 by Flaviu11 Quote Link to comment Share on other sites More sharing options...
FeVosFeR Posted March 16, 2019 Author Report Share Posted March 16, 2019 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. Quote Link to comment Share on other sites More sharing options...
ASGOOD Posted March 16, 2019 Report Share Posted March 16, 2019 new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); si la EstiFondator(playerid) || strcmp(pname, "Nume", true) == 0)) Quote Link to comment Share on other sites More sharing options...
Flaviu11 Posted March 18, 2019 Report Share Posted March 18, 2019 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 Quote Link to comment Share on other sites More sharing options...
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.