29.10.2015, 22:00
Dentro da sua fs de admin coloque
e vocк poderб usar a variбvel de admin dentro da gm
--
PHP код:
forward GetPlayerAdminLevel(playerid);
public GetPlayerAdminLevel(playerid) return Account[playerid][Level];
PHP код:
if(CallRemoteFunction("GetPlayerAdminLevel","i",playerid) < 1)
PHP код:
if(!strcmp(cmdtext, "/admincmds", true))
{
switch(Account[playerid][Level])
{
case 0: return SendClientMessage(playerid, 0xFF0000FF, "ERRO: Vocк nгo tem permissгo");
case 1: // Level 1
{
SendClientMessage(playerid, 0xFFFFFFFF, "| Comandos admin lvl 1 |");
SendClientMessage(playerid, 0x00AE00FF, "/ir /trazer /asay");
}
case 2: // Level 2
{
SendClientMessage(playerid, 0xFFFFFFFF, "| Comandos admin lvl 2 |");
SendClientMessage(playerid, 0x00AE00FF, "/ir /trazer /asay");
SendClientMessage(playerid, 0x00AE00FF, "/avisar /prender");
}
}
return 1;
}