[Help]Admin duznost

Započeo Mleko123
6. Apr. 2014. Zaključano
662
pregleda
9
postova
Antonio_Leko
5
Kingpin
6. Apr. 2014.
Ime GameMode:Edit
Koji problem imate da zelite nam reci:Znaci ja sam napravio kao 3 vrste komande za duty 1./aduty2./vduty(vlasnik)3./scduty(skripter).....Ja sam nesto radio da im pise na glavi ....Ali kad idem off duty to se ne skida i kad ovaj npr. Vlasnik napise /vduty ne ide off pa poslije klinke /aduty pa na glavi mu pise , pa se to sve zbrlja tu su kodovi pa ako mi nekkao mozete pomoci ili dati savjet 🙂
P.S
Ako vam bude trebalo komande za /aduty i /scduty recite mi
YCMD:vduty(playerid, params[], help)
{
    #pragma unused help
#pragma unused params
    if(UlogovanProvera == 0) return SCM(playerid,-1,"BS:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo == 0) return SCM(playerid, -1, ""CRVENA"BSRP © "BELA"Samo Admini!");
new string;
if(PlayerInfo == 6)
if(AdminDuty == 0)
{
    format(string,sizeof(string),""CRVENA"(( "BELA"Vlasnik "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "ZUTA"/askq "CRVENA"))",GetName(playerid));
SCMTA(-1,string);
AdminDuty = 1;
SetPlayerColor(playerid, 0xFF0000FF);
SetPlayerArmour(playerid, 99.0);
g_SetPlayerHealth(playerid, 99.0);
        new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("", COLOR_RED,x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid,x,y,z);
Attach3DTextLabelToPlayer(label,playerid,0.0, 0.0, 0.7);

}
else if(AdminDuty == 1)
{
SetPlayerArmour(playerid, 0);
g_SetPlayerHealth(playerid, 99.0);
format(string,sizeof(string),""CRVENA"(( "BELA"Administrator "CRVENA"%s "BELA"vise nije na duznosti "CRVENA"))",GetName(playerid));
SCMTA(-1,string);
SetPlayerColor(playerid, BELA2);
AdminDuty = 0;
new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("", COLOR_RED,x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid,x,y,z);
        Delete3DTextLabel(label);
  }
  return 1;
}
arambasa
5
Underboss
6. Apr. 2014.
YCMD:vduty(playerid, params[], help)
{
    #pragma unused help
#pragma unused params
    if(UlogovanProvera == 0) return SCM(playerid,-1,"BS:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo == 0) return SCM(playerid, -1, ""CRVENA"BSRP © "BELA"Samo Admini!");
new string;
if(PlayerInfo == 6)
if(AdminDuty == 0)
{
    format(string,sizeof(string),""CRVENA"(( "BELA"Vlasnik "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "ZUTA"/askq "CRVENA"))",GetName(playerid));
SCMTA(-1,string);
AdminDuty = 1;
SetPlayerColor(playerid, 0xFF0000FF);
SetPlayerArmour(playerid, 99.0);
g_SetPlayerHealth(playerid, 99.0);
        new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("", COLOR_RED,x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid,x,y,z);
Attach3DTextLabelToPlayer(label,playerid,0.0, 0.0, 0.7);

}
else if(AdminDuty == 1)
{
SetPlayerArmour(playerid, 0);
g_SetPlayerHealth(playerid, 99.0);
format(string,sizeof(string),""CRVENA"(( "BELA"Administrator "CRVENA"%s "BELA"vise nije na duznosti "CRVENA"))",GetName(playerid));
SCMTA(-1,string);
SetPlayerColor(playerid, BELA2);
AdminDuty = 0;
new Float:x, Float:y, Float:z;
                DeletePlayer3DTextLabel(playerid, label);
new Text3D:label = Create3DTextLabel("", COLOR_RED,x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid,x,y,z);
        Delete3DTextLabel(label);
  }
  return 1;
}
PWN|Medis
5
Kingpin
6. Apr. 2014.
daj te komande /aduty i /scduty
arambasa
5
Underboss
6. Apr. 2014.
Unrealistic wrote on April 6, 2014, 6:49 am:
daj te komande /aduty i /scduty


sta ima da ti daje komande po sta je napisao gore : Njemu stavara bug kada udje na /vduty i onda mu iznad glave ispise [ VLASNIK ] ali kad izadje sa te duznosti namestio je da mu iznad glave ispise [ ADMINISTRATOR ] ,  popravio sam mu to u prosloj poruci sam mu dao skriptu , inace trebao je da doda samo DeletePlayer3dTextLabel
PWN|Medis
5
Kingpin
6. Apr. 2014.
ti si mu dao cmd koja ima dva puta isto, a i on to ima u cmd
YCMD:vduty(playerid, params[], help)
{
    #pragma unused help
#pragma unused params
    if(UlogovanProvera == 0) return SCM(playerid,-1,"BS:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo == 0) return SCM(playerid, -1, ""CRVENA"BSRP © "BELA"Samo Admini!");
new string;
if(PlayerInfo == 6)
if(AdminDuty == 0)
{
    format(string,sizeof(string),""CRVENA"(( "BELA"Vlasnik "CRVENA"%s "BELA"je na duznosti,za pomoc kucajte "ZUTA"/askq "CRVENA"))",GetName(playerid));
SCMTA(-1,string);
AdminDuty = 1;
SetPlayerColor(playerid, 0xFF0000FF);
SetPlayerArmour(playerid, 99.0);
g_SetPlayerHealth(playerid, 99.0);
        new Float:x, Float:y, Float:z;
new Text3D:label = Create3DTextLabel("", COLOR_RED,x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid,x,y,z);
Attach3DTextLabelToPlayer(label,playerid,0.0, 0.0, 0.7);

}
else if(AdminDuty == 1)
{
SetPlayerArmour(playerid, 0);
g_SetPlayerHealth(playerid, 99.0);
format(string,sizeof(string),""CRVENA"(( "BELA"Administrator "CRVENA"%s "BELA"vise nije na duznosti "CRVENA"))",GetName(playerid));
SCMTA(-1,string);
SetPlayerColor(playerid, BELA2);
AdminDuty = 0;
new Float:x, Float:y, Float:z;
                DeletePlayer3DTextLabel(playerid, label);///TU ISTO
new Text3D:label = Create3DTextLabel("", COLOR_RED,x,y,z, 40.0, 0, 0);
GetPlayerPos(playerid,x,y,z);
        Delete3DTextLabel( label);// TU ISTO
  }
  return 1;
}
arambasa
5
Underboss
6. Apr. 2014.
Ja nisam ni video da ima to duplo 🙂 hahahahha 😄 Pa onda nema problema u /vduty sta si dao tu komandu 🙂 Sry
PWN|Medis
5
Kingpin
6. Apr. 2014.
ima problem u vduty
sad gledam i nije mi jasno vidim da je on pogresno napisao tačnije nije stavio playerid
njegovo
Delete3DTextLabel(label);


treba da ide
Delete3DTextLabel(playerid, label);
Antonio_Leko
5
Kingpin
6. Apr. 2014.
Sad mi je doslo ovo kad sam stavio(playerid, label)
PWN|Medis
5
Kingpin
6. Apr. 2014.
probaj ovako stavit
Delete3DTextLabel(playerid, Player3DText:label);

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha