SA-MP Forums Archive
Player Markers & Kill Ranks - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Player Markers & Kill Ranks (/showthread.php?tid=167617)



Player Markers & Kill Ranks - Mr_Osborn - 13.08.2010

Well, I'm here again. Could anyone link me to a guide/tell me how to make player markers visible? I've tried to put this code under public OnGameModeInit(), but it doesn't work.

Код:
ShowPlayerMarkers(1);
This is how my group looks like under "OnPlayerSpawn", what am I doing wrong?

Код:
 
if (gTeam[playerid] == TEAM_OSBORNS)
    {
        SetPlayerToTeamColor(playerid);
        SetPlayerColor(playerid, TEAM_OSBORNS_COLOR);
        SetPlayerArmour(playerid, 100);
    }
    if (gTeam[playerid] == TEAM_CORDOZARMAFIA)
    {
        SetPlayerToTeamColor(playerid);
        SetPlayerColor(playerid, TEAM_CORDOZARMAFIA_COLOR);
        SetPlayerArmour(playerid, 100);
    }
    if (gTeam[playerid] == TEAM_BLACKHANDTRIADS)
    {
        SetPlayerToTeamColor(playerid);
        SetPlayerColor(playerid, TEAM_BLACKHANDTRIADS_COLOR);
        SetPlayerArmour(playerid, 100);
    }
    if (gTeam[playerid] == TEAM_FARMERS)
    {
        SetPlayerToTeamColor(playerid);
        SetPlayerColor(playerid, TEAM_FARMERS_COLOR);
        SetPlayerArmour(playerid, 100);
    }
    if (gTeam[playerid] == TEAM_LSPD)
    {
        SetPlayerToTeamColor(playerid);
        SetPlayerColor(playerid, TEAM_LSPD_COLOR);
        SetPlayerArmour(playerid, 100);
}
return 1;
This is what the #define looks like for TEAM_TEAMNAME_COLOR looks like:
Код:
#define TEAM_OSBORNS_COLOR 0xCD370000
#define TEAM_CORDOZARMAFIA_COLOR 0xFF00FF00
#define TEAM_BLACKHANDTRIADS_COLOR 0x2B2B2B00
#define TEAM_FARMERS_COLOR 0xDB937000
#define TEAM_LSPD_COLOR 0x3300FF00
I'm also interested to know, how do I make a SendClientMessageToAll when someone like got a 3 kill streak? I want to make messages come up when a player gets an amount of kills it comes up like "Playername is on a killing spree!",
It would be great if someone could help me out!

Thanks,
- Mr Osborn.


Re: Player Markers & Kill Ranks - willsuckformoney - 13.08.2010

so you want a killing spree?


Re: Player Markers & Kill Ranks - Mr_Osborn - 13.08.2010

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
so you want a killing spree?
Yeah, that's what I want.


Re: Player Markers & Kill Ranks - Donuts - 13.08.2010

The markers do not show up because the hex color code is at 100% transparency. Here's a link with information about it.

So if you want to see them change the last two numbers(00 in this case) to FF


Re: Player Markers & Kill Ranks - willsuckformoney - 13.08.2010

Killing Spree's TuToriaL

Click it, REALLY simple.


Re: Player Markers & Kill Ranks - Ihsan_Cingisiz - 13.08.2010

Quote:

Mr_Osborn: Well, I'm here again. Could anyone link me to a guide/tell me how to make player markers visible? I've tried to put this code under public OnGameModeInit(), but it doesn't work.

Код:
ShowPlayerMarkers(1);
would be great if someone could help me out!

Thanks,
- Mr Osborn.

ShowPlayerMarkers(true);
:P