Jump to content
  • 0

problema cu patratel pe mini-map


Madalin1607

Question

Problema intalnita (descriere): pai cand ma fac lider la factiunea 6 ,8,9 si 15 mi se vede pe mini-map un patratel verde/negru/verde/maro(culorile factiunilor) 
Ero(area / rile) / warning-(ul / urile): nici una
Liniile de cod / sursa / script-ul(obligatoriu): nu stiu unde sa caut asa ceva sa le scot sa nu imi mai apara pe minimap
Imagini / Video (optional): factiunea 6 http://postimg.org/image/hx443h1qv/

http://postimg.org/image/8zje649av/

http://postimg.org/image/vcr4sxa8n/

15 http://postimg.org/image/lurdsvok7/

Ati incercat sa rezolvati singur?: da dar nimic si nu stiu cum incepe expresia cu care apare pe mapa patratelu ala handicapat ca ma enerveaza nu e ca si cum ai fi admin sa dai /aod si sa ma vada pe mapa ca sunt on duty

 

 

Link to comment
Share on other sites

20 answers to this question

Recommended Posts

  • 0

un mic exemplu cum as putea sa o adaug acolo te rog :D ...

 

aici chiar ma depaseste daca ma poti ajuta te rog frumos 

 

public OnGameModeInit()
{
    new string[256];
    new string1[MAX_PLAYER_NAME];
for(new c=0;c<CAR_AMOUNT;c++)
{
Gas[c] = GasMax;
}
LoadCar();
CreateFoodMenus();
CreateGuideMenus();
CreateLicensesMenuMenus();
LoadProperty();
LoadBizz();
LoadSBizz();
LoadBoxer();
LoadStuff();
LoadIRC();
LoadFamilies();
LoadCK();
LoadTurfs();
LoadPapers();
LoadDrugSystem();
LoadMatsSystem();
LoadHQLocks();
LoadTrunk();
UsePlayerPedAnims();
IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
IRCInfo[9][iPlayers] = 0;
News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
format(string, sizeof(string), "Nothing");
strmid(News[hAdd1], string, 0, strlen(string), 255);
strmid(News[hAdd2], string, 0, strlen(string), 255);
strmid(News[hAdd3], string, 0, strlen(string), 255);
strmid(News[hAdd4], string, 0, strlen(string), 255);
strmid(News[hAdd5], string, 0, strlen(string), 255);
format(string1, sizeof(string1), "No-one");
strmid(News[hContact1], string1, 0, strlen(string1), 255);
strmid(News[hContact2], string1, 0, strlen(string1), 255);
strmid(News[hContact3], string1, 0, strlen(string1), 255);
strmid(News[hContact4], string1, 0, strlen(string1), 255);
strmid(News[hContact5], string1, 0, strlen(string1), 255);
PlayerHaul[108][pCapasity] = 100;
PlayerHaul[109][pCapasity] = 100;
PlayerHaul[110][pCapasity] = 50;
PlayerHaul[111][pCapasity] = 50;
SetGameModeText("Version Just4Fun");
SendRconCommand("¤ mapname ¤ LS LV SF ¤");
SendRconCommand("¤ weburl www.Just4Fun.ro/forum ¤");
format(objstore, sizeof(objstore), "MOLE: I got nothing, check back with me later.");
format(cbjstore, sizeof(cbjstore), "HQ: There is nothing in your Vicinity, Out.");
format(motd, sizeof(motd), "Bine Ai venit pe Just4Fun Roleplay Romania, daca ai nevoie de ajutor scrie /contact.");
gettime(ghour, gminute, gsecond);
FixHour(ghour);
ghour = shifthour;
if(!realtime)
{
SetWorldTime(wtime);
}
SetPlayerMarkerForPlayer(playerid, 0, 0x80800000);
    SetPlayerMarkerForPlayer(playerid, 0, 0x66FF0000);
    SetPlayerMarkerForPlayer(playerid, 0, 0x00000000);
    SetPlayerMarkerForPlayer(playerid, 0, 0x66000000); unde le pun deoarece imi da eroare la playerid ....
SetPDistance(10);
AllowInteriorWeapons(1);
AllowAdminTeleport(0);
DisableInteriorEnterExits();
EnableStuntBonusForAll(0);
Edited by Madalin1607
Link to comment
Share on other sites

  • 0

done ms frumos nonamed 

 

dar am alta problema acum  cand dau /aod nu mai imi apare patratelul roz cum il fac sa apara ? doar pt cei cu aod(admini)

 

 

 

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;
}
Link to comment
Share on other sites

  • 0

Pai da,faci un public SetPlayerToTeamColor(playerid)

Si pui asa:

if(IsPlayerConnected(playerid))
    {
        if (AdminDuty(playerid))
        {
            SetPlayerColor(playerid,CULOARE);
        }

Cod intreg:

public SetPlayerToTeamColor(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if (AdminDuty(playerid))
        {
            SetPlayerColor(playerid,CULOARE);
        }
    }
}

 

 

Link to comment
Share on other sites

  • 0

Pai exemplul ce ti la dat Adrian_Petre nu coincide cu ce ai tu acolo inlocuieste linia 9817 cu asta:

if(AdminDuty[playerid] == 1) { SetPlayerColor(playerid,0xFFB9DCFF); }
Edited by andy47
Link to comment
Share on other sites

  • 0

up!!!

Si macar ai incercat ce ti-a dat el ? Pentru ca aia ar trebui sa functioneze, bineinteles, daca si incerci ...

 

Adauga asta la SetPlayerToTeamColor(playerid) :


if(AdminDuty[playerid] == 1)
SetPlayerColor(playerid,0xFF5B5BFF); 

iar unde se activeaza comanda adauga asa : 


SetPlayerColor(playerid,0xFF5B5BFF); 

Link to comment
Share on other sites

  • 0

up ma ajuta cineva va rog frumos ...

 

deci cand dau /aod sa fie singurul marker on pe mapa atat ma intereseaza ....

ca innainte imi apareau si la 4 factiuni markeri aiurea pe mapa 

 

si am bagat la  public OnGameModeInit() 

 

ShowPlayerMarkers(0);

 

si nu imi apare acum nici un marker pe mapa . singurul care as vrea a imi apara ar fi cel de la /aod deci ma puteti ajuta sau nu ...

Link to comment
Share on other sites

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

Adauga asta in comanda ta. Deci toti playeri vor putea sa-l vada pe minimap cu culoarea rosie pe cel care a tastat comanda /aod. Eu am pus culoarea rosie tu o poti schimba.

Edited by andy47
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.