Player Markers & Kill Ranks
#1

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.
Reply
#2

so you want a killing spree?
Reply
#3

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

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
Reply
#5

Killing Spree's TuToriaL

Click it, REALLY simple.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)