SA-MP Forums Archive
Ajutati-ma cu comanda /makeadmin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ajutati-ma cu comanda /makeadmin (/showthread.php?tid=609506)



Ajutati-ma cu comanda /makeadmin - Calinut200 - 13.06.2016

Hello, I want to help. We Customer / makeadmin and I want to write you give admin: you offer to player X admin level X
This is Code:
CMD:makeadmin(playerid, params[])
{
if(IsPlayerAdmin(playerid)||PlayerInfo[playerid][pAdmin] >= 7)
{
new id, string[128], level;
if(sscanf(params, "dd", id, level)) return SendClientMessage(playerid, -1, "{FF0000}INFO:{FFFFFF}: /makeadmin [id] [level]");
format(string, sizeof(string), "{FF0000}INFO:{FFFFFF}Ai fost promovat de administrator la admin level %d.", level);
SendClientMessage(id, -1, string);
PlayerInfo[id][pAdmin] = level;
}
else SendClientMessage(playerid, -1, "{FF0000}INFO:{FFFFFF}Nu ai acces la aceasta comanda.");
return 1;
}


Re: Ajutati-ma cu comanda /makeadmin - Jimmi - 13.06.2016

Esti pe forum englez.


Re: Ajutati-ma cu comanda /makeadmin - Nin9r - 13.06.2016

English please.