[Pomoc] Neradi mi 3d text kod admina i gs-a kada su na duznosti?

Započeo Jukyâ„¢, Januar 04, 2012, 14:46:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Moj GM
Detaljan opis problema:Neradi mi 3d text kad admin ide /aon i kada gs ide /gson neznam zasto?
Dio skripte:if(strcmp(cmd, "/aon", true) == 0)
    {
    if (PlayerInfo[playerid][pAdmin] >= 1)
{
  SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}je sada na duznosti",sendername);
        BroadCast(SVETLOPLAVA, string);
    new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
            playertextid = CreatePlayer3DTextLabel(playerid,"Admin na duznosti! (Ne Ometaj!)",SVETLOPLAVA,fa,fy,fu,40.0,INVALID_PLAYER_ID, playerid);
return 1;
}
    else
    {
    SendClientMessage(playerid, WHITE, "("COL_RED"SCRP{FFFFFF}!) Nisi admin!");
    }
    return 1;
  }
if(strcmp(cmd, "/aoff", true) == 0)
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}vise nije na duznosti!",sendername);
BroadCast(SVETLOPLAVA, string);
  DeletePlayer3DTextLabel(playerid, playertextid);
return 1;
    }
    else
    {
    SendClientMessage(playerid, WHITE, "("COL_RED"SCRP{FFFFFF}!) Nisi admin!");
    }
return 1;
}
if(strcmp(cmd, "/gson", true) == 0)
{

    if (PlayerInfo[playerid][pGameSage] >= 1)
    {
            SetPlayerArmour(playerid, 1000.0);
    SetPlayerHealth(playerid, 1000.0);
            GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"je sada na duznosti",sendername);
    BroadCast(ZELENKASTA, string);
    new Float:gfa, Float:gfy, Float:gfu;
GetPlayerPos( playerid, gfa, gfy, gfu );
    playertextidgs = CreatePlayer3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!)",ZELENKASTA2,gfa,gfy,gfu,40.0,INVALID_PLAYER_ID, playerid);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, WHITE, "("COL_RED"SCRP{FFFFFF}!) Nisi GameSage!");
    }
  return 1;
}
if(strcmp(cmd, "/gsoff", true) == 0)
{
    if (PlayerInfo[playerid][pGameSage] >= 1)
    {
        SetPlayerArmour(playerid, 0.0);
    SetPlayerHealth(playerid, 100.0);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"vise nije na duznosti!",sendername);
        BroadCast(ZELENKASTA, string);
        DeletePlayer3DTextLabel(playerid, playertextidgs);
            return 1;
    }
    else
    {
    SendClientMessage(playerid, WHITE, "("COL_RED"SCRP{FFFFFF}!) Nisi GameSage!");
}
  return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Skype: juky6661

Server ip: 193.104.68.47:7785
Forum:http://lc-samp.mojkgb.com/forum

evo probaj ovako:
//ADMIN DUTY
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_YELLOW);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s je sada na Duznosti", playerid, sendername);
                                       adminduty[playerid] = Create3DTextLabel("Ovde stavi tekst koji oces",0xFF0000FF, 30.0, 40.0, 50.0, 40.0, 0,0);
                                       Attach3DTextLabelToPlayer(gmduty[playerid], playerid, 0.0, 0.0, 0.5)
ABroadCast(COLOR_YELLOW,string,1);
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)
       {
           AdminDuty[playerid] = 0;
           SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,COLOR_WHITE);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s vise nije na Duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
                                       Delete3DTextLabel(adminduty[playerid]);
return 1;
       }
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY, "   Niste Admin !");
       return 1;
   }
}
   return 1;
}
Poslednja Izmena: Januar 04, 2012, 15:04:52 POSLE PODNE od (BSL)MasteR
Balkan Online Public CS 1.6
IP:188.40.52.207:27027
Forum: www.cs-balkanonline.site40.net
Posjetite nas......

CMD:aon(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(playerid, "ADuty") == 0)
{
new string[128];
   SetPVarInt(playerid, "ADuty", 1);
   new sMsg[ 128 ];
      GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
SetPlayerColor(playerid, COLOR_LIGHTBLUE);
D_SetPlayerHealth(playerid,200.0);
SetPlayerArmour(playerid,100.0);
format(string, sizeof(string), "Admin %s je na duznosti", sMsg);
GBroadCast(COLOR_LIGHTBLUE,string,1);
ABroadCast(COLOR_LIGHTBLUE,string,1);
SendClientMessage(playerid, 0xE30000FF, "Sada si Admin On Duty !");
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
SetPlayerChatBubble(playerid, "Admin na Duznosti, Ne Ometaj", COLOR_LIGHTBLUE, 50.0, 99999999999);

  //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;
}

CMD:aoff(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && GetPVarInt(playerid, "ADuty") == 1)
{
   new string[128];
   SetPVarInt(playerid, "ADuty", 0);
   new sMsg[ 128 ];
      GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
      SetPlayerMarkerForPlayer(playerid, 1, 0xFFFFFF00 ); //ovaj dio je vazan("00" na kraju koda boje), on stavlja da je blip transparentan tj. nema ga
SetPlayerColor(playerid,0xFFFFFF00); //ehhh sad, nisam siguran dal ovo uopce treba (postavlja igracevu boju na bijelu)
D_SetPlayerHealth(playerid,100.0);
SetPlayerArmour(playerid,0.0);
format(string, sizeof(string), "Admin %s vise nije na duznosti", sMsg);
GBroadCast(COLOR_LIGHTBLUE,string,1);
ABroadCast(COLOR_LIGHTBLUE,string,1);
SendClientMessage(playerid, 0xB30000FF, "Nisi vise Admin On Duty !");
DeletePlayer3DTextLabel(playerid, playertextid);
SetPlayerChatBubble(playerid, "", COLOR_LIGHTBLUE, 50.0, 99999999999);
}
return 1;
}

Bolje ti je da koristi SetPlayerChatBubble

Hvala vam,ali SetPlayerChatBubble koristim kod igraca tako da..
Skype: juky6661

Server ip: 193.104.68.47:7785
Forum:http://lc-samp.mojkgb.com/forum