[Pomoc] Boja

Započeo [JV:RP] Milos, Decembar 31, 2013, 14:55:26 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ime skripte FC-RP
Opis problema: Ocu kada kucam maskon da bi je boja na igracu recimo crna i sada radi to sto sam mislio ali igrac koji stavi masku vidi se crna boja na mapi ??? kako da napravim da stavim boju ali da se ona ne vidi na mapu??
Nesto da dodate: Odg molim st pre treba i ;D

nerazumem gde zelis da se vidi kad kliknes tab ili iznad glave?
69

evo stavio sma ovako    if(strcmp(cmd, "/maskon", true) == 0) // by Ellis
{
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMask] == 1)
    {
         SendClientMessage(playerid, COLOR_GRAD1, "   Nemate masku");
         return 1;
    }
    if(PlayerInfo[playerid][pLevel] < 5)
    {
        SendClientMessage(playerid, COLOR_GRAD1, "Morate biti level 5 za koriscenje ove komande.");
        return 1;
    }
PlayerInfo[playerid][pMaskuse] = 1;
foreach(Player,i)
            {
            SetPlayerMarkerForPlayer(playerid, i, 0xAFAFAFAA);
            }
SendClientMessage(playerid, COLOR_WHITE, " Stavili ste vasu masku [/maskoff da je skinete].");
GetPlayerName(playerid, sendername, sizeof(sendername));
            new mica[200];format(StaroIme[playerid],200,"%s",sendername);format(mica,200,"(%i)((Masked))",playerid);SetPlayerName(playerid,mica);
         SetPlayerAttachedObject(playerid, 5,  18912, 2,0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754 ); // HockeyMask1 - 3
      format(string, sizeof(string), "* %s stavlja masku.", sendername);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
Nece da mi pokaze boju evo vidi jesam dobro uradio,mozes mi edit ? ti


ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);

Izvini ako sam te pogresno razumio..

if(strcmp(cmd, "/maskon", true) == 0) // by Ellis
{
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMask] == 1)
    {
         SendClientMessage(playerid, COLOR_GRAD1, "   Nemate masku");
         return 1;
    }
    if(PlayerInfo[playerid][pLevel] < 5)
    {
        SendClientMessage(playerid, COLOR_GRAD1, "Morate biti level 5 za koriscenje ove komande.");
        return 1;
    }
PlayerInfo[playerid][pMaskuse] = 1;
foreach(Player,i)
            {
            SetPlayerMarkerForPlayer(playerid, i, 0xAFAFAF00);
            }
SendClientMessage(playerid, COLOR_WHITE, " Stavili ste vasu masku [/maskoff da je skinete].");
GetPlayerName(playerid, sendername, sizeof(sendername));
            new mica[200];format(StaroIme[playerid],200,"%s",sendername);format(mica,200,"(%i)((Masked))",playerid);SetPlayerName(playerid,mica);
         SetPlayerAttachedObject(playerid, 5,  18912, 2,0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754 ); // HockeyMask1 - 3
      format(string, sizeof(string), "* %s stavlja masku.", sendername);
      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}


Probaj ovako.

Probao sam sve ovo i ne radi.... milim radi ali vidi se opet na mapi

Pod ongamemodeinit stavi ShowPlayerMarkers(0); ako sam te dobro razumeo
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).