[Pomoc] 3DText

Započeo Partybreaker, Jul 20, 2011, 18:07:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Moja
Detaljan opis problema: Stavio sam kada Admini i GM-ovi ukucaju /aon i /gmon da im se pojavi iznad glave onaj text. Sve radi,samo ima jedan problem. Cesto se desi da obicni igraci imaju ispisan taj text iznad glave..
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Evo cijela komanda /aon /aoff /gmon i /gmoff

CMD:aon(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(playerid, "ADuty") == 0)
{
   SetPVarInt(playerid, "ADuty", 1);
   new sMsg[ 128 ];
      GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
//SetPlayerColor(playerid, 0xE30000FF);
D_SetPlayerHealth(playerid,200.0);
SetPlayerArmour(playerid,100.0);
SendClientMessage(playerid, 0xE30000FF, "Sada si Admin On Duty !");
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
adminnaduznosti[playerid] = Create3DTextLabel("Admin Na duznosti! NE ometaj!",COLOR_LIGHTBLUE,0,0,0,50,-1,50);
            Attach3DTextLabelToPlayer(adminnaduznosti[playerid], playerid, 0,0,0);

}
return 1;
}

CMD:aoff(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(playerid, "ADuty") == 1)
{
   SetPVarInt(playerid, "ADuty", 0);
   new sMsg[ 128 ];
      GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
SetPlayerColor(playerid, COLOR_WHITE);
D_SetPlayerHealth(playerid,100.0);
SetPlayerArmour(playerid,0.0);
SendClientMessage(playerid, 0xB30000FF, "Nisi vise Admin On Duty !");
Delete3DTextLabel(adminnaduznosti[playerid]); // brisanje 3d labela..
}
return 1;
}


COMMAND:gmon(playerid, params[])
{
   if(IsPlayerConnected(playerid))
   {
if (PlayerInfo[playerid][pGameMaster] >= 1 && GetPVarInt(playerid, "GMDUTY") == 0)
{
               new sMsg[ 128 ];

               SetPVarInt(playerid, "GMDUTY", 1);
               GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
               SetPlayerColor( playerid, 0x0984C2FF );
               D_SetPlayerHealth(playerid, 250);
       SetPlayerArmour(playerid, 250);
               format( sMsg, sizeof( sMsg ), "GameMaster %s je sada na duznosti.", sMsg );
               SendClientMessageToAll( 0x0984C2FF, sMsg );
               SendClientMessage(playerid, 0x000040FF, "Sada si GameMaster On Duty !");
                gmnaduznosti[playerid] = Create3DTextLabel("GameMaster na duznosti! NE ometaj!",COLOR_GREEN,0,0,0,50,-1,50);
            Attach3DTextLabelToPlayer(gmnaduznosti[playerid], playerid, 0,0,0);


}
}
return 1;
}
COMMAND:gmoff(playerid, params[])
{
   if(IsPlayerConnected(playerid))
   {
if (PlayerInfo[playerid][pGameMaster] >= 1 && GetPVarInt(playerid, "GMDUTY") == 1)
{
               new sMsg[ 128 ];
               SetPVarInt(playerid, "GMDUTY", 0);
               GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME);
               SetPlayerColor( playerid, COLOR_WHITE );
               D_SetPlayerHealth(playerid, 100);
               SetPlayerArmour(playerid, 0);
               format( sMsg, sizeof( sMsg ), "GameMaster %s vise nije na duznosti.", sMsg );
               SendClientMessageToAll( 0x0984C2FF, sMsg );
               SendClientMessage(playerid, 0x000040FF, "Sada si GameMaster Off Duty !");
               Delete3DTextLabel(gmnaduznosti[playerid]); // brisanje 3d labela..



}
}
return 1;
}


Ne znam je li problem u ovome ali eto sam postao za svaki slucaj.
Ako neko zna,bio bih zahvalan na pomoci.
Poslednja Izmena: Jul 20, 2011, 18:59:38 POSLE PODNE od _Stranger


Server IP: 193.192.58.82:7782
Forum: www.balkan-underline.info


Mi bi bili zahvalni da ti pravila procitas

Citat: Apokalipsa poslato Jul 20, 2011, 18:56:08 POSLE PODNE
Mi bi bili zahvalni da ti pravila procitas
Ja bi bio zahvalan da ti prestanes govoriti to umesto mene/smodova/administratorima. I ako nevidis on je sve dobro uradio ali kod mu se zeznuo sad cu fixati.

Ja bi bio zahvalan da ti prestanes biti bahat i da se ponasas kao moderator.Al bez svadje ja ga samo upozoravan da pogledate pravila,sad si ti edito

Citat: Apokalipsa poslato Jul 20, 2011, 19:01:34 POSLE PODNE
Ja bi bio zahvalan da ti prestanes biti bahat i da se ponasas kao moderator.Al bez svadje ja ga samo upozoravan da pogledate pravila,sad si ti edito

Aj Å¡uti molim te  ::)

@Apokalipsa

Razguli ako ne znas, pogrijesio sam i?

ostali ima neko da moze pomoci?


Server IP: 193.192.58.82:7782
Forum: www.balkan-underline.info


apokalipsa daj molim te

evo kako je kod mene i sve lijepo dela :D
Kod (System32) [Izaberi]
new Text3D:duznost[MAX_PLAYERS];
Kod (System32) [Izaberi]
YCMD:onduty(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
    new string[128];
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 1)
{
duznost[playerid] = Create3DTextLabel("Na dužnosti!", COLOR_LIME, 0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(duznost[playerid], playerid, 0,0,0);
        SetPlayerColor(playerid, COLOR_LIME);
        SetPlayerColor(playerid, COLOR_GREEN);
        SetPlayerHealth(playerid, 250);
        SetPlayerArmour(playerid, 250);
        format(string, sizeof(string), "%s je sada na dužnosti!", GetName(playerid));
        SendClientMessageToAll(COLOR_LIGHTBLUE, string);
        OnDuty[playerid] = 1;
}
else SendClientMessage(playerid, COLOR_KRED, "Niste autorizirani za korištenje ove komande!");
return 1;
}

YCMD:offduty(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
new string[128];
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 1)
{
        Delete3DTextLabel(duznost[playerid]);
  SetPlayerColor(playerid, COLOR_WHITE);
SetPlayerHealth(playerid, 250);
SetPlayerArmour(playerid, 250);
  format(string, sizeof(string), "%s viÅ¡e nije na dužnosti!", GetName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
OnDuty[playerid] = 0;
}
else SendClientMessage(playerid, COLOR_KRED, "Niste autorizirani za korištenje ove komande!");
    return 1;
}


Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

to ti ostaje kad admin kuca adminduty pa ode off a nekuca adminoffduty pa sljedeci koji ude na njegov id pise to..

to je i meni bilo..

naparvi kad admin ide off da mu mice to..
Vratio sam se ponovo ocekjute novi server...

Evo posto se gospodin hvali da je njegov GM.... pogledajte Pacinovu komandu /aon on je samo sklonio ono sto je pacino stavio pod //

CMD:aon(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(playerid, "ADuty") == 0)
{
    SetPVarInt(playerid, "ADuty", 1);
    new sMsg[ 128 ];
      GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
//SetPlayerColor(playerid, 0xE30000FF);
D_SetPlayerHealth(playerid,200.0);
SetPlayerArmour(playerid,100.0);
SendClientMessage(playerid, 0xE30000FF, "Sada si Admin On Duty !");
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
playertextid = CreatePlayer3DTextLabel(playerid,"{FF0000}Admin na Duznosti!\n{FF6E6E}Ne ometaj!",0xE30000FF,fa,fy,fu,40.0, playerid);
//Attach3DTextLabelToPlayer(Text3D:playertextid, playerid, 0.0, 0.0, 0.0);

    //DutyLabel[playerid] = CreatePlayer3DTextLabel(playerid,"Admin na Duznosti \n Ne ometaj!", 0xE30000FF, 0.0, 0.0, 0.0, 25.0, INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);

}
return 1;
}
//