[Pomoc] Kako staviti text na admin duty da pise adminu iznad galve text

Započeo Patrick, Mart 22, 2011, 21:05:05 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Patrick

Skripta koju koristim:Cyber
Detaljan opis problema:Htio bi stavit kad je admin on duty da mu pise iznad glave: Admin na duznosti, ne OMETAJ!
Dio skripte:


CitatCMD:adminduty(playerid,params[])
{
   new
   sendername[MAX_PLAYER_NAME],
   string[128];
   if(gPlayerLogged[playerid] == 0)
          {
              SendClientMessage(playerid, SIVA, "Moras biti ulogiran");
            return 1;
          }
          if(PlayerInfo[playerid][Admin] > 0)
          {
              if(OnDuty[playerid] == 0)
              {
                  OnDuty[playerid] = 1;
                  SetPlayerArmour(playerid, 999);
               SetPlayerHealth(playerid, 999);
               SetPlayerColor(playerid,0xFF00EBFF);
               GetPlayerName(playerid, sendername, sizeof(sendername));
               format(string, sizeof(string), "[Admin]: %s je sada admin na duznosti.", sendername);
               SendClientMessageToAll(0xFF00EBFF,string);
            }
              else if(OnDuty[playerid] == 1)
              {
                  OnDuty[playerid] = 0;
                  SetPlayerArmour(playerid, 0);
               SetPlayerHealth(playerid, 100);
               SetPlayerColor(playerid,TEAM_HIT_COLOR);
               GetPlayerName(playerid, sendername, sizeof(sendername));
               format(string, sizeof(string), "[Admin]: %s vise nije na duznosti.", sendername);
               SendClientMessageToAll(0xFF00EBFF,string);
               return 1;
              }
          }
          else
          {
              SendClientMessage(playerid, SIVA, "[Greska]: Moras biti administrator");
              return 1;
          }
       return 1;
}

ako bi mi ko htio dodat na too bio bi mu zahvala i ako se moze opce
HVALA!!!!!!!!!  :)

Moderator:

-(POMOC) nije valjan prefix. Koristi uglate zagrade "[" i "]"
Poslednja Izmena: Mart 22, 2011, 21:11:53 POSLE PODNE od BloodMaster


Dosadni ste sa tim, jedno 6 tema o ovom u kratkom roku... Koristite trazilicu:

Rjesenje:

Citat: BloodMaster
U komandu gdje palis duznost stavis ovo:

SetPlayerChatBubble(playerid, "Administrator na duznosti!\n{ffffff}Ne ometaj!", 0xFF000001, 100.0, 10*60*60*1000);

I u dio gdje gasis duznost:

SetPlayerChatBubble(playerid, " ", 0xFF000001,0,0);

Pa koristil ko ovdje ono u meniu izmedju Pomoć i Profil?
Neki dan bila ista ovakva tema i fino covjek objasnio.
ccc

Patrick

Moze mi neko stavit tu unutra da nes ne zeznem pls ako mu nije problem prvi put ovo radim neznam bas skriptati ali .? plss  :-\


CitatCMD:adminduty(playerid,params[])
{
   new
   sendername[MAX_PLAYER_NAME],
   string[128];
    if(gPlayerLogged[playerid] == 0)
          {
              SendClientMessage(playerid, SIVA, "Moras biti ulogiran");
            return 1;
          }
          if(PlayerInfo[playerid][Admin] > 0)
          {
              if(OnDuty[playerid] == 0)
              {
                  OnDuty[playerid] = 1;
                  SetPlayerArmour(playerid, 999);
               SetPlayerHealth(playerid, 999);
               SetPlayerColor(playerid,0xFF00EBFF);
               GetPlayerName(playerid, sendername, sizeof(sendername));
               format(string, sizeof(string), "[Admin]: %s je sada admin na duznosti.", sendername);
               SendClientMessageToAll(0xFF00EBFF,string);
            }
              else if(OnDuty[playerid] == 1)
              {
                  OnDuty[playerid] = 0;
                  SetPlayerArmour(playerid, 0);
               SetPlayerHealth(playerid, 100);
               SetPlayerColor(playerid,TEAM_HIT_COLOR);
               GetPlayerName(playerid, sendername, sizeof(sendername));
               format(string, sizeof(string), "[Admin]: %s vise nije na duznosti.", sendername);
               SendClientMessageToAll(0xFF00EBFF,string);
               return 1;
              }
          }
          else
          {
              SendClientMessage(playerid, SIVA, "[Greska]: Moras biti administrator");
              return 1;
          }
       return 1;
}

CMD:adminduty(playerid,params[])
{
   new
   sendername[MAX_PLAYER_NAME],
   string[128];
    if(gPlayerLogged[playerid] == 0)
          {
              SendClientMessage(playerid, SIVA, "Moras biti ulogiran");
            return 1;
          }
          if(PlayerInfo[playerid][Admin] > 0)
          {
              if(OnDuty[playerid] == 0)
              {
                  OnDuty[playerid] = 1;
                  SetPlayerArmour(playerid, 999);
               SetPlayerHealth(playerid, 999);
               SetPlayerColor(playerid,0xFF00EBFF);
               GetPlayerName(playerid, sendername, sizeof(sendername));
               format(string, sizeof(string), "[Admin]: %s je sada admin na duznosti.", sendername);
               SetPlayerChatBubble(playerid, "Administrator na duznosti!\n{ffffff}Ne ometaj!", 0xFF000001, 100.0, 10*60*60*1000);
               SendClientMessageToAll(0xFF00EBFF,string);
            }
              else if(OnDuty[playerid] == 1)
              {
                  OnDuty[playerid] = 0;
                  SetPlayerArmour(playerid, 0);
               SetPlayerHealth(playerid, 100);
               SetPlayerColor(playerid,TEAM_HIT_COLOR);
               GetPlayerName(playerid, sendername, sizeof(sendername));
               format(string, sizeof(string), "[Admin]: %s vise nije na duznosti.", sendername);
               SetPlayerChatBubble(playerid, " ", 0xFF000001,0,0);
               SendClientMessageToAll(0xFF00EBFF,string);
               return 1;
              }
          }
          else
          {
              SendClientMessage(playerid, SIVA, "[Greska]: Moras biti administrator");
              return 1;
          }
       return 1;
}


CMD:adminduty(playerid,params[])
{
  new
  sendername[MAX_PLAYER_NAME],
  string[128];
   if(gPlayerLogged[playerid] == 0)
         {
             SendClientMessage(playerid, SIVA, "Moras biti ulogiran");
           return 1;
         }
         if(PlayerInfo[playerid][Admin] > 0)
         {
             if(OnDuty[playerid] == 0)
             {
                 OnDuty[playerid] = 1;
                 SetPlayerArmour(playerid, 999);
              SetPlayerHealth(playerid, 999);
              SetPlayerChatBubble(playerid, "Administrator na duznosti!\n{ffffff}Ne ometaj!", 0xFF000001, 100.0, 10*60*60*1000);
              SetPlayerColor(playerid,0xFF00EBFF);
              GetPlayerName(playerid, sendername, sizeof(sendername));
              format(string, sizeof(string), "[Admin]: %s je sada admin na duznosti.", sendername);
              SendClientMessageToAll(0xFF00EBFF,string);
           }
             else if(OnDuty[playerid] == 1)
             {
                 OnDuty[playerid] = 0;
                 SetPlayerArmour(playerid, 0);
              SetPlayerHealth(playerid, 100);
              SetPlayerColor(playerid,TEAM_HIT_COLOR);
              SetPlayerChatBubble(playerid, " ", 0xFF000001,0,0);
              GetPlayerName(playerid, sendername, sizeof(sendername));
              format(string, sizeof(string), "[Admin]: %s vise nije na duznosti.", sendername);
              SendClientMessageToAll(0xFF00EBFF,string);
              return 1;
             }
         }
         else
         {
             SendClientMessage(playerid, SIVA, "[Greska]: Moras biti administrator");
             return 1;
         }
      return 1;
}


EDIT: Pu za sekundu me prestigo :)




Mirnas_Tajic

ja sam ovo complite i izbaci mi ovo

C:\DOCUME~1\MIRNAS~1\LOCALS~1\Temp\Rar$DI08.296\streetstories.pwn(44157) : warning 203: symbol is never used: "adminduty"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

Po ko zna koji put ti jedno pa isto.
Idi CTRL+F, nadji "adminduty" i obrisi ga.



Mirnas_Tajic

a kad najdem imam 300 dje mi pise adminduty koje treba obrisati netreba valjda sve dje pise adminduty obrisat
PS:Dali ce vako radit ako nista nebrisem

Idi do 44157 liniju i izbrisi adminduty.
I da, radit ce ti i ako nista ne izbrises.




Mirnas_Tajic

Vako udjes u GM u skroz dole samo ovo ubacis eto tako sam ja uradio