[Pomoc]Boja imena

Započeo Nikola_Soprano, Jun 07, 2013, 19:32:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja editovana
Detaljan opis problema: evo, na primer meni je namesteno da kada se ukljuci admin duty /aduty da se boja imena promeni u zutu, a kad iskljucim admin duty ostaje boja... Kako da namestim da se vrati u pocetnu belu, a da ne bude oznaceno na mapi? I da se vrati stari skin, koj je bio pre toga..
Hvala
Dio skripte: SetPlayerColor(playerid, 0xFFFFFF);
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Poslednja Izmena: Jun 07, 2013, 19:38:29 POSLE PODNE od Nikola_Soprano

daj komandu


[FS]Rent
[FS] Vremenska prognoza
[TuT] PayDay
[TuT]PayDay sistem[UPDATED]
Moja Biografija

Respect:Mr.Gagi,FlasH,Streetboy,David (Sabljak) A.k.A SABO(T)
ÄŒovjek nije stvoren za poraze, moze biti unisten, ali ne i pobjeÄ'en!

if(!strcmp(cmdtext, "/adminduty", true) || !strcmp(cmdtext, "/aduty", 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, 100);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid, 0xFFFFFF);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{F3FF02}Admin {FFFFFF}%s(ID:%d) {F3FF02}je na duznosti, za pomoc kucajte {FFFFFF}/report!", sendername,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
                    DutyLabel[playerid] = Create3DTextLabel("[ADMIN]",0x000000FF,0,0,0,200,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0.3);
SetPlayerSkin(playerid,294);
                    if(PlayerInfo[playerid][pAdmin] >= 1337)
{
    for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}
return 1;
        }
        else if(AdminDuty[playerid] == 1)
        {
                    Delete3DTextLabel(DutyLabel[playerid]);
AdminDuty[playerid] = 0;
            SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid, 0xFFFFFF);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{F3FF02}Admin {FFFFFF}%s(ID:%d) {F3FF02}vise nije na duznosti!", sendername,playerid);
                    ABroadCast(COLOR_LIGHTRED,string,1);
return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Niste Admin !");
        return 1;
    }
}
    return 1;

Koliko sam te razumeo ovo trazis if(!strcmp(cmdtext, "/adminduty", true) || !strcmp(cmdtext, "/aduty", 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, 100);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid, 0xFFFFFF);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{F3FF02}Admin {FFFFFF}%s(ID:%d) {F3FF02}je na duznosti, za pomoc kucajte {FFFFFF}/report!", sendername,playerid);
ABroadCast(COLOR_LIGHTRED,string,1);
                    DutyLabel[playerid] = Create3DTextLabel("[ADMIN]",0x000000FF,0,0,0,200,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0.3);
SetPlayerSkin(playerid,294);
                    if(PlayerInfo[playerid][pAdmin] >= 1337)
{
    for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}
return 1;
        }
        else if(AdminDuty[playerid] == 1)
        {
                    Delete3DTextLabel(DutyLabel[playerid]);
AdminDuty[playerid] = 0;
            SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid, COLOR_WHITE);
SetPlayerSkin(playerid,294);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{F3FF02}Admin {FFFFFF}%s(ID:%d) {F3FF02}vise nije na duznosti!", sendername,playerid);
                    ABroadCast(COLOR_LIGHTRED,string,1);
return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Niste Admin !");
        return 1;
    }
}
    return 1;
Poslednja Izmena: Jun 07, 2013, 20:21:15 POSLE PODNE od [LX] BocaBajrovic (Bocilinjo!)