Admin

Započeo WilliamS, April 01, 2013, 21:14:04 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Moja
Detaljan opis problema:Zelim kada je admin na duty i kliknem TAB da mu ime bude crno a kada nije na duty da bude belo (normalno)
Dio skripte:Kazite sta treba
Neke slike/video za lakse dobivanje pomoci(neobavezno):.


Respect:ColdPlay,Artie,dnjl.

korsiti setplayercolor..

Citat: TriX poslato April 01, 2013, 21:14:04 POSLE PODNE
Skripta koju koristim:Moja
Detaljan opis problema:Zelim kada je admin na duty i kliknem TAB da mu ime bude crno a kada nije na duty da bude belo (normalno)
Dio skripte:Kazite sta treba
Neke slike/video za lakse dobivanje pomoci(neobavezno):.
if(!strcmp(cmdtext, "/adminduty", true)) // By Ellis
{
if(IsPlayerConnected(playerid))
{
    if(gPlayerLogged[playerid] == 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Morate se prvo prijaviti !");
return 1;
    }
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
        if(AdminDuty[playerid] == 0)
        {
            AdminDuty[playerid] = 1;
            SetPlayerArmour(playerid, 999);
SetPlayerHealth(playerid, 999);
SetPlayerColor(playerid,COLOR_BLACK);
SetPlayerSkin(playerid, 217);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "TW:AC | ID:%d %s | je na admin duznost.", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
SetPlayerColor(playerid,COLOR_PURPLE);
if(PlayerInfo[playerid][pAdmin] >= 1)
{
    for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}
return 1;
        }
        else if(AdminDuty[playerid] == 1)
        {
            AdminDuty[playerid] = 0;
            SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,COLOR_BLACK);
SetPlayerSkin(playerid, 217);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "TW:AC | ID:%d %s | je sada van duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
SetPlayerColor(playerid,COLOR_WHITE);
return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Niste Admin !");
        return 1;
    }
}
    return 1;
}
ako ima erora javi :D

Citat: BocaBajrovic1995 poslato April 02, 2013, 02:00:54 PRE PODNE
Citat: TriX poslato April 01, 2013, 21:14:04 POSLE PODNE
Skripta koju koristim:Moja
Detaljan opis problema:Zelim kada je admin na duty i kliknem TAB da mu ime bude crno a kada nije na duty da bude belo (normalno)
Dio skripte:Kazite sta treba
Neke slike/video za lakse dobivanje pomoci(neobavezno):.
if(!strcmp(cmdtext, "/adminduty", true)) // By Ellis
{
if(IsPlayerConnected(playerid))
{
    if(gPlayerLogged[playerid] == 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Morate se prvo prijaviti !");
return 1;
    }
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
        if(AdminDuty[playerid] == 0)
        {
            AdminDuty[playerid] = 1;
            SetPlayerArmour(playerid, 999);
SetPlayerHealth(playerid, 999);
SetPlayerColor(playerid,COLOR_BLACK);
SetPlayerSkin(playerid, 217);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "TW:AC | ID:%d %s | je na admin duznost.", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
SetPlayerColor(playerid,COLOR_PURPLE);
if(PlayerInfo[playerid][pAdmin] >= 1)
{
    for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}
return 1;
        }
        else if(AdminDuty[playerid] == 1)
        {
            AdminDuty[playerid] = 0;
            SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,COLOR_BLACK);
SetPlayerSkin(playerid, 217);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "TW:AC | ID:%d %s | je sada van duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
SetPlayerColor(playerid,COLOR_WHITE);
return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Niste Admin !");
        return 1;
    }
}
    return 1;
}
ako ima erora javi :D


Tnxx Bocilinjo! Car si ;) Hvala i tebi Sabljak :D
Poslednja Izmena: April 02, 2013, 12:52:59 POSLE PODNE od TriX


Respect:ColdPlay,Artie,dnjl.