Skripta koju koristim:FactionGameRP(Moj Edit)
Detaljan opis problema:Ovako,imam 3d textove stavljene za admine,znaci ako je admin level 1-4 da mu pise ADMIN iznad glave,ako je 1337 HEAD ADMIN,1338 SKRIPTER,1339 SUVLASNIK i 1340 VLASNIK.E sada,problem je sto nece da prikaze te 3d textove.
Dio skripte:new Text3D:a14text;
new Text3D:a1337text;
new Text3D:a1338text;
new Text3D:a1339text;
new Text3D:a1340text;
a14text = Create3DTextLabel("[ADMIN]",COLOR_BLACK,0,0,0,100,0,1);
a1337text = Create3DTextLabel("[HEAD ADMIN]",COLOR_BLACK,0,0,0,100,0,0);
a1338text = Create3DTextLabel("[SKRIPTER]",COLOR_BLACK,0,0,0,100,0,0);
a1339text = Create3DTextLabel("[SUVLASNIK]",COLOR_BLACK,0,0,0,100,0,0);
a1340text = Create3DTextLabel("[VLASNIK]",COLOR_BLACK,0,0,0,100,0,0);
I ovo :
public adminlabel(playerid)
{
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
{
Attach3DTextLabelToPlayer(a14text,playerid,0,0,0.6);
}
if(PlayerInfo[playerid][pAdmin] == 1337)
{
Attach3DTextLabelToPlayer(a1337text,playerid,0,0,0.6);
}
if(PlayerInfo[playerid][pAdmin] == 1338)
{
Attach3DTextLabelToPlayer(a1338text,playerid,0,0,0.6);
}
if(PlayerInfo[playerid][pAdmin] == 1339)
{
Attach3DTextLabelToPlayer(a1339text,playerid,0,0,0.6);
}
if(PlayerInfo[playerid][pAdmin] == 1340)
{
Attach3DTextLabelToPlayer(a1340text,playerid,0,0,0.6);
}
}
Stv mi treba pomoc :'( :S
SAmo jedan dio ostali dio uradi po ovome :
na vrh :
new Text3D:a14text[MAX_PLAYERS];
tvoj dio :
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
{
a14text[playerid] = Create3DTextLabel("[ADMIN]",COLOR_BLACK,0,0,0,100,0,1);
Attach3DTextLabelToPlayer(a14text[playerid],playerid,0,0,0.6);
}
Ako ti, kao igraÄ koji iznad sebe ima 3D text label, ne vidiÅ¡ taj text label, to je oke. Jer ostali igraÄi vide.
sry sto upadam ali ovo mi treba nego gde se ovo ubaci pls ako moze neko da kaze xD ?
a14text = Create3DTextLabel("[ADMIN]",COLOR_BLACK,0,0,0,100,0,1);
a1337text = Create3DTextLabel("[HEAD ADMIN]",COLOR_BLACK,0,0,0,100,0,0);
a1338text = Create3DTextLabel("[SKRIPTER]",COLOR_BLACK,0,0,0,100,0,0);
a1339text = Create3DTextLabel("[SUVLASNIK]",COLOR_BLACK,0,0,0,100,0,0);
a1340text = Create3DTextLabel("[VLASNIK]",COLOR_BLACK,0,0,0,100,0,0);
Citat: [TG:RP]$--L84S--$ poslato Mart 12, 2012, 11:45:24 PRE PODNE
SAmo jedan dio ostali dio uradi po ovome :
na vrh :
new Text3D:a14text[MAX_PLAYERS];
tvoj dio :
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
{
a14text[playerid] = Create3DTextLabel("[ADMIN]",COLOR_BLACK,0,0,0,100,0,1);
Attach3DTextLabelToPlayer(a14text[playerid],playerid,0,0,0.6);
}
Cek cek,znaci to bi trebalo ovako da izgleda :
new Text3D:a14text[MAX_PLAYERS];
new Text3D:a1337text[MAX_PLAYERS];
new Text3D:a1338text[MAX_PLAYERS];
new Text3D:a1339text[MAX_PLAYERS];
new Text3D:a1340text[MAX_PLAYERS];
i
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
{
a14text[playerid] = Create3DTextLabel("[ADMIN]",COLOR_BLACK,0,0,0,100,0,1);
Attach3DTextLabelToPlayer(a14text[playerid],playerid,0,0,0.6);
}
if(PlayerInfo[playerid][pAdmin] == 1337)
{
a1337text[playerid] = Create3DTextLabel("[HEAD ADMIN]",COLOR_BLACK,0,0,0,100,0,1);
Attach3DTextLabelToPlayer(a1337text[playerid],playerid,0,0,0.6);
}
if(PlayerInfo[playerid][pAdmin] == 1338)
{
a1338text[playerid] = Create3DTextLabel("[SKRIPTER]",COLOR_BLACK,0,0,0,100,0,1);
Attach3DTextLabelToPlayer(a1338text[playerid],playerid,0,0,0.6);
}
if(PlayerInfo[playerid][pAdmin] == 1339)
{
a1339text[playerid] = Create3DTextLabel("[SUVLASNIK]",COLOR_BLACK,0,0,0,100,0,1);
Attach3DTextLabelToPlayer(a1339text[playerid],playerid,0,0,0.6);
}
if(PlayerInfo[playerid][pAdmin] == 1340)
{
a1340text[playerid] = Create3DTextLabel("[VLASNIK]",COLOR_BLACK,0,0,0,100,0,1);
Attach3DTextLabelToPlayer(a1340text[playerid],playerid,0,0,0.6);
}
Ae sad cu test pa cu videti dali radi.
EDIT :C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15813) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15815) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15816) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15818) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15820) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15821) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15823) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15825) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15826) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15828) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15830) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15831) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15833) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15835) : error 017: undefined symbol "playerid"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(15836) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
15 Errors.
Brate ae kazi ti meni za ovo ako ti nije prob xD treba mi to jako xD
Citat: Novica poslato Mart 12, 2012, 20:46:12 POSLE PODNE
Brate ae kazi ti meni za ovo ako ti nije prob xD treba mi to jako xD
Nzm brate i ja sam se namucio,i jos se mucim.
Nzm ni ja sam kako sta gde kada !!
Evo probaj ovako.. iznad OnGameModeInit dodaj
new Text3D:Admin3D[MAX_PLAYERS];
na kraj skripte dodaj ovaj stock
stock adminlabel(playerid)
{
new 3dtext[32];
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4) { 3dtext="[ADMIN]"; }
else if(PlayerInfo[playerid][pAdmin] == 1337) { 3dtext="[HEAD ADMIN]"; }
else if(PlayerInfo[playerid][pAdmin] == 1338) { 3dtext="[SCRIPTER]"; }
else if(PlayerInfo[playerid][pAdmin] == 1339) { 3dtext="[SUVLASNIK]"; }
else if(PlayerInfo[playerid][pAdmin] == 1340) { 3dtext="[VLASNIK]"; }
Admin3D[playerid] = Create3DTextLabel(3dtext, COLOR_RED, 0, 0, 0, 20, 0, 1);
Attach3DTextLabelToPlayer(playerid, Admin3D[playerid], 0, 0, 0.6);
}
Gde zelis da dodas da se stvara admin text dodaj samo:
adminlabel(playerid);
Trebalo bi raditi..
Citat: dock poslato Mart 12, 2012, 23:39:26 POSLE PODNE
Evo probaj ovako.. iznad OnGameModeInit dodaj
Gde zelis da dodas da se stvara admin text dodaj samo:
adminlabel(playerid);
Trebalo bi raditi..
Sve mi je jasno sem ovog dela.
pa npr imas komandu /aon samo u nju dodas to
adminlabel(playerid);
i pokazace se label.. nez za sta nameravas sve da koristis te labelove zato ti kazem...
Citat: dock poslato Mart 13, 2012, 00:15:45 PRE PODNE
pa npr imas komandu /aon samo u nju dodas to
adminlabel(playerid);
i pokazace se label.. nez za sta nameravas sve da koristis te labelove zato ti kazem...
Hvala.
Posto sad idem u skolu testiracu posle pa cu ti javim.
EDIT :Na kraj skripte sam dodao
stock adminlabel(playerid)
{
new 3dtext[32];
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4) { 3dtext="[ADMIN]"; }
else if(PlayerInfo[playerid][pAdmin] == 1337) { 3dtext="[HEAD ADMIN]"; }
else if(PlayerInfo[playerid][pAdmin] == 1338) { 3dtext="[SCRIPTER]"; }
else if(PlayerInfo[playerid][pAdmin] == 1339) { 3dtext="[SUVLASNIK]"; }
else if(PlayerInfo[playerid][pAdmin] == 1340) { 3dtext="[VLASNIK]"; }
Admin3D[playerid] = Create3DTextLabel(3dtext, COLOR_RED, 0, 0, 0, 20, 0, 1);
Attach3DTextLabelToPlayer(playerid, Admin3D[playerid], 0, 0, 0.6);
}
Gore gde su mi NEW
new Text3D:Admin3D[MAX_PLAYERS];
E sada,neznam gde u /adminduty da dodam
adminlabel(playerid);
Evo mi je komanda /adminduty
//ADMIN DUTY
if(!strcmp(cmdtext, "/adminduty", true)) // By Me
{
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, 9999999);
SetPlayerHealth(playerid, 9999999);
adminlabel(playerid);
SetPlayerColor(playerid,TEAM_VAGOS_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s je na duznosti, kucajte /p [text] za pomoc.", playerid, sendername);
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, 100);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s vise nije na duznosti.", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste Admin !");
return 1;
}
}
return 1;
}
//ADMIN DUTY
if(!strcmp(cmdtext, "/adminduty", true)) // By Me
{
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, server uklonjen!999);
SetPlayerHealth(playerid, server uklonjen!999);
adminlabel(playerid);
SetPlayerColor(playerid,TEAM_VAGOS_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s je na duznosti, kucajte /p [text] za pomoc.", playerid, sendername);
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, 100);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s vise nije na duznosti.", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste Admin !");
return 1;
}
}
return 1;
}
msm da je to to
izadje mi 15 errora za "3dtext" kaze da nije u redu sa ovim nesto "dtext" pls help
zameni
3dtext
u stocku sa
a3dtext
mislim da je to zato sto pocinje brojem uradi to pa javi dal radi
Citat: dock poslato Mart 13, 2012, 19:32:03 POSLE PODNE
zameni
3dtext
u stocku sa
a3dtext
mislim da je to zato sto pocinje brojem uradi to pa javi dal radi
Ja dobijem :
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58639) : error 001: expected token: "-identifier-", but found "3"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58640) : error 017: undefined symbol "a3dtext"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58640) : warning 215: expression has no effect
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58641) : error 017: undefined symbol "a3dtext"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58641) : warning 215: expression has no effect
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58642) : error 017: undefined symbol "a3dtext"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58642) : warning 215: expression has no effect
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58643) : error 017: undefined symbol "a3dtext"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58643) : warning 215: expression has no effect
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58644) : error 017: undefined symbol "a3dtext"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58644) : warning 215: expression has no effect
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58645) : error 017: undefined symbol "a3dtext"
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58646) : warning 213: tag mismatch
C:\Users\Koprivanac\Desktop\AdrenalinGamingRolePlay\gamemodes\FactionGame.pwn(58646) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
i ovo
new 3dtext[32];
zameni sa
new a3dtext[32];
..
Citat: dock poslato Mart 13, 2012, 22:35:06 POSLE PODNE
i ovo
new 3dtext[32];
zameni sa
new a3dtext[32];
..
new Text3D:Admin3D[MAX_PLAYERS];
Zamenim u sta?!
Text3D:Admin3D ne menjas...
to
new 3dtext[32];
zamjeni sa (gdje si stavio new 3dtext[32]; ) dje su ti newovi zamjeni sa
new a3dtext[32];
a
new Text3D:Admin3D[MAX_PLAYERS];
dodaj na vrh dje su ti newowi ;)
Nema errora sad videcu dal radi trebalobi da radi :)!
Citat: sTrumFâ,,¢ poslato Mart 14, 2012, 12:22:55 POSLE PODNE
to
new 3dtext[32];
zamjeni sa (gdje si stavio new 3dtext[32]; ) dje su ti newovi zamjeni sa
new a3dtext[32];
a
new Text3D:Admin3D[MAX_PLAYERS];
dodaj na vrh dje su ti newowi ;)
Ovo
new 3dtext[32];
Nisam stavio nigde,stavio sam
new Text3D:Admin3D[MAX_PLAYERS];
obadvoje stavi gore >:( samo procitaj sta trebas s cim zamjenti
Ne radi ovako -.-
jel ti ne vidis 3d text il drugi ne vide?
drugi meni ni ja drugima -.-
pa da uradite kako pise a ne kako vam se svidja radilo bi :S uradite kako sam napisao u prvom postu samo zamenite
3dtext
sa
a3dtext
svugde i nece biti problema -.- :S
Ma brate nemam errora vec nece da radi -.-
Citat: Novica poslato Mart 14, 2012, 20:55:16 POSLE PODNE
Ma brate nemam errora vec nece da radi -.-
Takodje.
Nevidim ni ja njima ni oni meni.
adminlabel(playerid); sam dodao pod /adminduty komandu ali dzabe.
Citat: [TG:RP]$--L84S--$ poslato Mart 12, 2012, 11:45:24 PRE PODNE
SAmo jedan dio ostali dio uradi po ovome :
na vrh :
new Text3D:a14text[MAX_PLAYERS];
tvoj dio :
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
{
a14text[playerid] = Create3DTextLabel("[ADMIN]",COLOR_BLACK,0,0,0,100,0,1);
Attach3DTextLabelToPlayer(a14text[playerid],playerid,0,0,0.6);
}
Ovako stavite ....
Citat: [TG:RP]$--L84S--$ poslato Mart 14, 2012, 21:45:22 POSLE PODNE
Citat: [TG:RP]$--L84S--$ poslato Mart 12, 2012, 11:45:24 PRE PODNE
SAmo jedan dio ostali dio uradi po ovome :
na vrh :
new Text3D:a14text[MAX_PLAYERS];
tvoj dio :
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] <= 4)
{
a14text[playerid] = Create3DTextLabel("[ADMIN]",COLOR_BLACK,0,0,0,100,0,1);
Attach3DTextLabelToPlayer(a14text[playerid],playerid,0,0,0.6);
}
Ovako stavite ....
Tako sam i stavio !!
Evo uradi ovako i mora raditi hehe :D
Prvo dodas ovo gde su ti ostali new-ovi:
new Text3D:AdminDuty[MAX_PLAYERS];
new ADuty[MAX_PLAYERS] = 0;
zatim zameni svoje komande za admin duznost sa ovime evo:
if(strcmp(cmd, "/aon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, COLOR_GRAD1, "*Nemate ovlasti da koristite ovu komandu!");
if(ADuty[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD1, "*Vec ste na duznosti!");
SetPlayerHealth(playerid, 150);
SetPlayerArmour(playerid, 150);
SendClientMessage(playerid, COLOR_YELLOW, "*Upalio si admin duznost!");
ADuty[playerid] = 1;
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 5)
{
AdminDuty[playerid] = Create3DTextLabel("[ADMIN]",0xFF0000AA,0,0,0,20,0,1);
Attach3DTextLabelToPlayer(AdminDuty[playerid], playerid, 0, 0, 0.6);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1337)
{
AdminDuty[playerid] = Create3DTextLabel("[HEAD ADMIN]",0xFF0000AA,0,0,0,20,0,1);
Attach3DTextLabelToPlayer(AdminDuty[playerid], playerid, 0, 0, 0.6);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1338)
{
AdminDuty[playerid] = Create3DTextLabel("[SCRIPTER]",0xFF0000AA,0,0,0,20,0,1);
Attach3DTextLabelToPlayer(AdminDuty[playerid], playerid, 0, 0, 0.6);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1339)
{
AdminDuty[playerid] = Create3DTextLabel("[SUVLASNIK]",0xFF0000AA,0,0,0,20,0,1);
Attach3DTextLabelToPlayer(AdminDuty[playerid], playerid, 0, 0, 0.6);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1340)
{
AdminDuty[playerid] = Create3DTextLabel("[VLASNIK]",0xFF0000AA,0,0,0,20,0,1);
Attach3DTextLabelToPlayer(AdminDuty[playerid], playerid, 0, 0, 0.6);
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/aoff", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, COLOR_GRAD1, "*Nemate ovlasti da koristite ovu komandu!");
if(ADuty[playerid] == 0) return SendClientMessage(playerid, COLOR_GRAD1, "*Vi niste na duznosti!");
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
SendClientMessage(playerid, COLOR_GREEN, "*Iskljucio si admin duznost!");
ADuty[playerid] = 0;
Delete3DTextLabel(AdminDuty[playerid]);
}
return 1;
}
i na kraju pod onPlayerDisconnect dodaj:
Delete3DTextLabel(AdminDuty[playerid]);
Ako ima greska javi zato sto sam sad pisao haha :D