Helloka olyan segítségre lenne szükségem hogy itt ez az aszoli kód
CMD:aszoli(playerid,params[])
{
if(JatekosInfo[playerid][AdminSzint] >= 1)
{
if(JatekosInfo[playerid][AdminSzint] == 1)
{
new Text3D:adminsz[MAX_PLAYERS];
adminsz[playerid] = Create3DTextLabel(\"1 Admin Szolgálatban\",0x00cfdeAA,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(adminsz[playerid], playerid, 0.0, 0.0, 0.7);
}
if(JatekosInfo[playerid][AdminSzint] == 2)
{
new Text3D:adminsz[MAX_PLAYERS];
adminsz[playerid] = Create3DTextLabel(\"2 Admin Szolgálatban\",0x00cfdeAA,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(adminsz[playerid], playerid, 0.0, 0.0, 0.7);
}
if(JatekosInfo[playerid][AdminSzint] == 3)
{
new Text3D:adminsz[MAX_PLAYERS];
adminsz[playerid] = Create3DTextLabel(\"3 Admin Szolgálatban\",0x00cfdeAA,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(adminsz[playerid], playerid, 0.0, 0.0, 0.7);
}
if(JatekosInfo[playerid][AdminSzint] == 4)
{
new Text3D:adminsz[MAX_PLAYERS];
adminsz[playerid] = Create3DTextLabel(\"4 Admin Szolgálatban\",0x00cfdeAA,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(adminsz[playerid], playerid, 0.0, 0.0, 0.7);
}
}
else SendClientMessage(playerid,HIBA,\"Nem vagy admin!\");
return 1;
}
És hogy ha beírom /aszoli akkor írja ki hogy \"1,2,3,4 Admin %s(név) Adminszolgálatban\" .
És hogy egy /kilepaszoli és eltünik a fejem fölül a 3d text. Köszönöm!
röviden:
new aduty[MAX_PLAYERS];
new Text3D:adminsz[MAX_PLAYERS]
CMD:aszoli(playerid,params[])
{
if(JatekosInfo[playerid][AdminSzint] >= 1)
{
if(aduty[playerid] == 0)
{
new Nev[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nev,sizeof(Nev));
new string[128];
format(string,sizeof(string),\"%s Adminszolgálatban\",rang(playerid));
adminsz[playerid] = Create3DTextLabel(string,0x00cfdeAA,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(adminsz[playerid], playerid, 0.0, 0.0, 0.7);
format(string,sizeof(string),\"%s %s adminszolgálatba lépett!\",Rang(playerid),Nev);
SendClientMessageToAll(COLOR,string);
aduty[playerid] = 1;
}else{
DeletePlayer3DTextLabel(playerid, adminsz[playerid]);
aduty[playerid] = 0;
}
}else { SendClientMessage(playerid,HIBA,\"Nem vagy admin!\"); }
return 1;
}
stock Rang(playerid)
{
new arang[40];
if(JatekosInfo[playerid][Adminszint] == 1) arang = \"adminrang 1\";
if(JatekosInfo[playerid][Adminszint] == 2) arang = \"adminrang 2\";
if(JatekosInfo[playerid][Adminszint] == 3) arang = \"adminrang 3\";
if(JatekosInfo[playerid][Adminszint] == 4) arang = \"adminrang 4\";
return arang;
}