Jump to content
  • 0

help vreau si eu la /aod marker pe mini-map


Madalin1607

Question

Problema intalnita (descriere): vreau ca la /aod sa apara marker pe mapa 
Ero(area / rile) / warning-(ul / urile): nici una momentan
Liniile de cod / sursa / script-ul(obligatoriu): if(!strcmp(cmdtext, "/aod", true) || !strcmp(cmdtext, "/aduty", true)) //

{
if(IsPlayerConnected(playerid))
{
 if(gPlayerLogged[playerid] == 0)
 {
 SendClientMessage(playerid, COLOR_GREY, " You need to login first !");
return 1;
 }
 new admtext[64];
if(PlayerInfo[playerid][pAdmin] == 1340) { admtext = "Owner"; }
else if(PlayerInfo[playerid][pAdmin] == 1339) { admtext = "Lead Admin"; }
else if(PlayerInfo[playerid][pAdmin] == 1338) { admtext = "Head Admin"; }
else if(PlayerInfo[playerid][pAdmin] == 1337) { admtext = "Moderator"; }
else if(PlayerInfo[playerid][pAdmin] == 4) { admtext = "Super Admin"; }
 else if(PlayerInfo[playerid][pAdmin] == 3) { admtext = "Qualified Admin"; }
 else if(PlayerInfo[playerid][pAdmin] == 2) { admtext = "Regular Admin"; }
 else if(PlayerInfo[playerid][pAdmin] == 1) { admtext = "Trial Admin"; }
 else { admtext = "Gamemoderator"; }
 if(PlayerInfo[playerid][pAdmin] > 0)
 {
 if(AdminDuty[playerid] == 0)
 {
 AdminDuty[playerid] = 1;
SetPlayerHealth(playerid, 999);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid, 0xFFB9DCFF);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " %s [iD:%d] is now on duty as an %s.Please /w him if you need help.",sendername,playerid,admtext);
SendClientMessageToAll(COLOR_LIGHTRED,string);
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, 0);
SetPlayerHealth(playerid, 100);
SetPlayerToTeamColor(playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " %s [iD:%d] is no longer on duty as an %s.Please not /w him.", sendername,playerid,admtext);
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
 }
 }
 else
 {
 SendClientMessage(playerid, COLOR_GREY, " You're not the admin !");
 return 1;
 }
}
 return 1;
}

Imagini / Video (optional): pai am facut niste chestii si imi aparea la toti playeri numele roz in loc sa faca numele decat la admin si sa apara patratelul roz pe mini-map  si markerul trb sa aiba culoarea 0xFFB9DCFF
Ati incercat sa rezolvati singur? da dar nici un rezultat astept idei 

 

app am pus la    

public OnGameModeInit()

{
new string[256];
ShowPlayerMarkers(0);
Edited by Madalin1607
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Buna ziua stimate.

Cu tot respectul fata de dumneavoastra, dar "A vrea" si "A cere ajutor" sunt doua lucruri total diferite.

Sectiunea este dedicata ajutorului in problemele aparute la Gamemode si nicidecum pentru a va afisa preferintele.

 

 

Aratati-ne spre exemplu ce ati incercati sa faceti?

ep41yhufqpagka5wfoornw1wjfjie.png

HTjr_G.png
12975.png
 
Link to comment
Share on other sites

  • 0

uite asta am bagat eu in comanda /aod si in loc sa imi apara marker imi face numele la toti roz 

for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerMarkerForPlayer(i, playerid, 0xFFB9DCFF );
}

 

multumit 

 

si nu stiu cum sa il fac sa imi apara marker pe minimap ca daca as sti nu as cere ajutorul 

 

ca asa pot sa scot direct  de aici 

public OnGameModeInit()

{
new string[256];
ShowPlayerMarkers(0);  asta sa o scot si e de ajuns dar imi apar alte markere la alte factiuni asa eu vreau sa imi apara decat la /aod (doar admini sa aiba marker ) pricepi 
Edited by Madalin1607
Link to comment
Share on other sites

  • 0

multumit 

 

 

 

 pricepi 

 

 

 

Buna seara stimate.

Sunteti prea nerespectuos. Din principiu nu va voi oferi ajutor in problema data.

Asteptati pana unul din colegii mei va vor da o idee.

ep41yhufqpagka5wfoornw1wjfjie.png

HTjr_G.png
12975.png
 
Link to comment
Share on other sites

  • 0

Esti umpic cam nesimtit si totusi nu ar fi trebuit sa te ajut dar mna..

if(!strcmp(cmdtext, "/aod", true) || !strcmp(cmdtext, "/aduty", true)) //
{
if(IsPlayerConnected(playerid))
{
 if(gPlayerLogged[playerid] == 0)
 {
 SendClientMessage(playerid, COLOR_GREY, " You need to login first !");
return 1;
 }
 new admtext[64];
if(PlayerInfo[playerid][pAdmin] == 1340) { admtext = "Owner"; }
else if(PlayerInfo[playerid][pAdmin] == 1339) { admtext = "Lead Admin"; }
else if(PlayerInfo[playerid][pAdmin] == 1338) { admtext = "Head Admin"; }
else if(PlayerInfo[playerid][pAdmin] == 1337) { admtext = "Moderator"; }
else if(PlayerInfo[playerid][pAdmin] == 4) { admtext = "Super Admin"; }
 else if(PlayerInfo[playerid][pAdmin] == 3) { admtext = "Qualified Admin"; }
 else if(PlayerInfo[playerid][pAdmin] == 2) { admtext = "Regular Admin"; }
 else if(PlayerInfo[playerid][pAdmin] == 1) { admtext = "Trial Admin"; }
 else { admtext = "Gamemoderator"; }
 if(PlayerInfo[playerid][pAdmin] > 0)
 {
 if(AdminDuty[playerid] == 0)
 {
 AdminDuty[playerid] = 1;
SetPlayerHealth(playerid, 999);
SetPlayerArmour(playerid, 100);
SetPlayerMarkerForPlayer(playerid, 1, 0xFF0000FF );
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " %s [ID:%d] is now on duty as an %s.Please /w him if you need help.",sendername,playerid,admtext);
SendClientMessageToAll(COLOR_LIGHTRED,string);
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, 0);
SetPlayerHealth(playerid, 100);
SetPlayerToTeamColor(playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " %s [ID:%d] is no longer on duty as an %s.Please not /w him.", sendername,playerid,admtext);
SendClientMessageToAll(COLOR_WHITE,string);
return 1;
 }
 }
 else
 {
 SendClientMessage(playerid, COLOR_GREY, " You're not the admin !");
 return 1;
 }
}
 return 1;
}

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.