Napraviti iznad imena GM,ADMIN

Započeo Maksim0vic, Februar 18, 2018, 17:13:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Detaljan opis problema:Na UP modu sam dodao GM levele i ima ih 4 ukupno to je lvl 1 , lvl 2 , zamenik vodje i vodja , i sada zelim da im pise [GAMEMASTER] ili [ADMIN] iznad imena,jel moze neko da me uputi kako bi to tacno trebao da raidm jer sam novi?
Dio skripte:Evo ga za /gmduty
[pawn]YCMD:gmduty(playerid, params[], help)
{
    #pragma unused help
   #pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pGM] == 0) return SCM(playerid, -1, ""SPLAVA"[UP:RP] "BELA"Samo GameMasteri!");
   new string[256];
   if(GMDuty[playerid] == 0)
   {
      format(string,sizeof(string),""CRVENA"(( "BELA"GameMaster "ZUTA"%s "BELA"je na duznosti,za pomoc kucajte "SPLAVA"/pitaj "CRVENA"))",GetName(playerid));
      SCMTA(-1,string);
      GMDuty[playerid] = 1;
      SetPlayerColor(playerid, 0x33CCFFAA);
      SetPlayerArmour(playerid, 99.0);
      g_SetPlayerHealth(playerid, 99.0);
   }
   else if(GMDuty[playerid] == 1)
   {
      SetPlayerArmour(playerid, 0);
      g_SetPlayerHealth(playerid, 99.0);
      SetPlayerColor(playerid,BELA2);
      format(string,sizeof(string),""CRVENA"(( "BELA"GameMaster "ZUTA"%s "BELA"vise nije na duznosti "CRVENA"))",GetName(playerid));
      SCMTA(-1,string);
      GMDuty[playerid] = 0;
   }
   return 1;
}[/pawn]
A ovo za /aduty
[pawn]YCMD:adminduty(playerid, params[], help)
{
    #pragma unused help
   #pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, ""SPLAVA"[UP:RP] "BELA"Samo Admini!");
   new string[256];
   if(AdminDuty[playerid] == 0)
   {
      format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "ZUTA"/pitaj "SPLAVA"))",GetName(playerid));
      SCMTA(-1,string);
      AdminDuty[playerid] = 1;
      SetPlayerColor(playerid, AZUTA);
      SetPlayerArmour(playerid, 99.0);
      g_SetPlayerHealth(playerid, 99.0);
   }
   else if(AdminDuty[playerid] == 1)
   {
      SetPlayerArmour(playerid, 0);
      g_SetPlayerHealth(playerid, 99.0);
      SetPlayerColor(playerid,BELA2);
      format(string,sizeof(string),""SPLAVA"(( "BELA"Administrator "CRVENA"%s "BELA"vise nije na duznosti "SPLAVA"))",GetName(playerid));
      SCMTA(-1,string);
      AdminDuty[playerid] = 0;
   }
   return 1;
}[/pawn]

I DA LI JE MOGUCE CIM MU SETAM ADMINA DA PISE IZNAD NICKA ADMIN


// OVO SKROZ DOLE KRAJ SKRIPTE :) //
forward ChatDouble();
public ChatDouble()
{
foreach(Player,i)
{
if(PlayerInfo[i][pGM] == 1)
{
SetPlayerChatBubble(i, "[ GameMaster ]", 0x33CCFFAA, 30.0,60000);
}
if(PlayerInfo[i][pGM] == 2)
{
SetPlayerChatBubble(i, "[ GameMaster 2 ]", 0x33CCFFAA, 30.0,60000);
}
if(PlayerInfo[i][pGM] == 3)
{
SetPlayerChatBubble(i, "[ GameMaster 3 ]", 0xFFC801C8, 30.0,60000);
}
if(PlayerInfo[i][pGM] == 4)
{
SetPlayerChatBubble(i, "[ GameMaster 4 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 1)
{
SetPlayerChatBubble(i, "[ ADMIN 1 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 2)
{
SetPlayerChatBubble(i, "[ ADMIN 2 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 3)
{
SetPlayerChatBubble(i, "[ ADMIN 3 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 4)
{
SetPlayerChatBubble(i, "[ ADMIN 4 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 5)
{
SetPlayerChatBubble(i, "[ ADMIN 5 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 6)
{
SetPlayerChatBubble(i, "[ ADMIN 6 ]", 0xFFC801C8, 30.0,60000);
}
}
return 1;
}
Scripter - Ventura Project
Ventura Project IP: 91.134.193.97:7790

Citat: Nacho poslato Februar 18, 2018, 17:30:15 POSLE PODNE

// OVO SKROZ DOLE KRAJ SKRIPTE :) //
forward ChatDouble();
public ChatDouble()
{
foreach(Player,i)
{
if(PlayerInfo[i][pGM] == 1)
{
SetPlayerChatBubble(i, "[ GameMaster ]", 0x33CCFFAA, 30.0,60000);
}
if(PlayerInfo[i][pGM] == 2)
{
SetPlayerChatBubble(i, "[ GameMaster 2 ]", 0x33CCFFAA, 30.0,60000);
}
if(PlayerInfo[i][pGM] == 3)
{
SetPlayerChatBubble(i, "[ GameMaster 3 ]", 0xFFC801C8, 30.0,60000);
}
if(PlayerInfo[i][pGM] == 4)
{
SetPlayerChatBubble(i, "[ GameMaster 4 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 1)
{
SetPlayerChatBubble(i, "[ ADMIN 1 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 2)
{
SetPlayerChatBubble(i, "[ ADMIN 2 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 3)
{
SetPlayerChatBubble(i, "[ ADMIN 3 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 4)
{
SetPlayerChatBubble(i, "[ ADMIN 4 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 5)
{
SetPlayerChatBubble(i, "[ ADMIN 5 ]", 0xFFC801C8, 30.0,60000);
}
else if(PlayerInfo[i][pAdmin] == 6)
{
SetPlayerChatBubble(i, "[ ADMIN 6 ]", 0xFFC801C8, 30.0,60000);
}
}
return 1;
}


HVALA MNOGOO!

SLEDEĆI PUT GOOGLE I MOZAK😀
Scripter - Ventura Project
Ventura Project IP: 91.134.193.97:7790