08.05.2012, 05:39
Galera, fiz o comando /admins aqui mas nгo ta funfando me ajuda ai :S
PHP код:
CMD:admins(playerid,params[])
{
new string[128], sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, -1, "|__{00FF40}B{FFFFFF}|{FFFF00}M{FFFFFF}|{0000FF}W{FFFFFF}____| {F97C00}ADMINS ONLINE {FFFFFF}|____{00FF40}B{FFFFFF}|{FFFF00}M{FFFFFF}|{0000FF}W{FFFFFF}__|");
if(Trabalhando[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Moderador{00FF40}) Modo: ({F97C00}Jogando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 2) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Administrador{00FF40}) Modo: ({F97C00}Jogando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 3) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Admin Level 3{00FF40}) Modo: ({F97C00}Jogando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 4) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Admin Level 4{00FF40}) Modo: ({F97C00}Jogando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 1337) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Master{00FF40}) Modo: ({F97C00}Jogando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 1339) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Sub-Dono{00FF40}) Modo: ({F97C00}Jogando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 5000) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Dono{00FF40}) Modo: ({F97C00}Jogando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
}
else if(Trabalhando[playerid] == 1)
{
if(PlayerInfo[playerid][pAdmin] == 1) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Moderador{00FF40}) Modo: ({F97C00}Trabalhando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 2) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Administrador{00FF40}) Modo: ({F97C00}Trabalhando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 3) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Admin Level 3{00FF40}) Modo: ({F97C00}Trabalhando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 4) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Admin Level 4{00FF40}) Modo: ({F97C00}Trabalhando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 1337) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Master{00FF40}) Modo: ({F97C00}Trabalhando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 1339) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Sub-Dono{00FF40}) Modo: ({F97C00}Trabalhando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
if(PlayerInfo[playerid][pAdmin] == 5000) return format(string, sizeof(string), "{00FF40}Admins: ({F97C00}%s{00FF40}) Nivel: ({F97C00}Dono{00FF40}) Modo: ({F97C00}Trabalhando{00FF40})",sendername);SendClientMessage(playerid, Cinza, string);
}
return 1;
}