[POMOC]Admini i Gm

Započeo |Xeptic| Führer, Februar 06, 2011, 21:07:38 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Evo ovako ako mi ko moze pokazati kako se stavi da se jednom komandom npr /test vidi online admini i gm... ovo je moja komanda al samo se admini vide ne vise se gm .. moze mi ko reci kako napravit da se vide gm ili kopirat je popravit i stavit ovdje bio bih mu/joj jako zahvalan.




Komanda:


if (strcmp(cmd, "/test", true) == 0 || strcmp(cmd, "/t", true) == 0)
{
       if(IsPlayerConnected(playerid))
   {
       SendClientMessage(playerid, COLOR_YELLOW, " ");
       SendClientMessage(playerid, COLOR_GREEN, "-|oVerated Admini/Gamemasteru su|-");
foreach (Player, i)
{
   if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338 || PlayerInfo[i][pGm] >=1 || PlayerInfo[i][pGm] >=2 || PlayerInfo[i][pGm] >=3 || PlayerInfo[i][pGm] >=4)
   {
   new admtext[64];
                                     if(PlayerInfo[i][pAdmin] == 1338) { admtext = "Admin Level 1338"; }
   else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "Admin Level 1337"; }
   else if(PlayerInfo[i][pAdmin] == 4) { admtext = "Admin Level 4"; }
else if(PlayerInfo[i][pAdmin] == 3) { admtext = "Admin Level 3"; }
else if(PlayerInfo[i][pAdmin] == 2) { admtext = "Admin Level 2"; }
else if(PlayerInfo[i][pAdmin] == 1) { admtext = "Admin Level 1"; }
else if(PlayerInfo[i][pGm] == 1) { admtext = "GameMaster Level 1"; }
else if(PlayerInfo[i][pGm] == 2) { admtext = "GameMaster Level 2"; }
else if(PlayerInfo[i][pGm] == 3) { admtext = "GameMaster Level 3"; }
else if(PlayerInfo[i][pGm] == 4) { admtext = "GameMaster Level 4"; }
GetPlayerName(i, sendername, sizeof(sendername));
if(AdminDuty[i] == 1)
{
   format(string, 256, "%s ( %s )", sendername, admtext);
SendClientMessage(playerid, COLOR_RED, string);
}
else if(GmDuty[i] == 1)
{
   format(string, 256, "%s ( %s )", sendername, admtext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
format(string, 256, "%s ( %s )", sendername, admtext);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
return 1;
}
Poslednja Izmena: Februar 06, 2011, 21:10:17 POSLE PODNE od Apokalipsa

poznaticovik

napravi /admins i /gamemasters bolje ti je

boje napravi da samo admini mogu vidjeti ko je od admina online da drugi igraci manje cheataju :)
Kr0s3
is back...

[FilterScript] BizzSystem
[FilterScript] Dinamicno Rotiranje Objekata

[MAP] BalkanNation: BalkanTV

[Tutorial] VrsteVozila
[Tutorial] Razne boje sa starim bojama
[Tutorial] Radenje RPG moda "od 0"

Ukoliko trebate pomoc u skriptanju, neznate nesto napraviti ili neznate popraviti neki bug slobodno me PM...
Voljan sam pomoci svakome, jer kada sam ja ucio meni nitko nije...


Ukoliko nas podupires stavi na svoj profil,
skripta online uskoro



www.balkan-nation.com

Znam sve to i ovo admin i ovo za manje cheatanja al mozete li mi stavit komandu da se vidi gm i admini kao sto sam rekao... molim vas ako znate...

evo ovo sam na brzinu ali ja mislim da radi probaj ti.
if(strcmp(cmd, "/test", true) == 0 || strcmp(cmd, "/t", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "------------> eg time Online <------------");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338)
    {
        new admtext[64];
        if(PlayerInfo[i][pAdmin] == 1) { admtext = "(eg Moderator)"; }
        else if(PlayerInfo[i][pAdmin] == 2) { admtext = "(eg Administrator)"; }
        else if(PlayerInfo[i][pAdmin] == 3) { admtext = "(eg Plus Administrator)"; }
else if(PlayerInfo[i][pAdmin] == 4) { admtext = "(eg Super Administrator)"; }
else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "(eg Global Administrator)"; }
else { format(admtext, sizeof(admtext), "(eg Admin Level: %d)", PlayerInfo[i][pAdmin]); }
                        GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s %s", sendername, admtext);
if (PlayerInfo[playerid][pAdmin] <= 3)
{
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(PlayerInfo[playerid][pAdmin] > 3 && PlayerInfo[playerid][pAdmin] < 1337)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else if(PlayerInfo[playerid][pAdmin] >= 1337)
{
SendClientMessage(playerid, COLOR_LIGHTRED, string);
}
}
if(PlayerInfo[i][pGameMaster] >= 1 && PlayerInfo[i][pGameMaster] < 1338)
    {
        new admtext[64];
        if(PlayerInfo[i][pGameMaster] == 1) { admtext = "(eg gm1)"; }
        else if(PlayerInfo[i][pGameMaster] == 2) { admtext = "(eg gm2)"; }
        else if(PlayerInfo[i][pGameMaster] == 3) { admtext = "(eg gm3)"; }
else if(PlayerInfo[i][pGameMaster] == 4) { admtext = "(eg gm4)"; }
                        GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "%s %s", sendername, admtext);
if (PlayerInfo[playerid][pGameMaster] <= 4)
{
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
}
return 1;
}



Posjetite nas i osjetite razliku
www.balkan-city.info



193.192.59.151:7788


Game monitor nije u 100% tocan tj uvjek pokaziva manje