Playermarks visible after 5 kills
#4

Quote:
Originally Posted by Luka[balkan-samp.com
]
Quote:
Originally Posted by Miokie*
At The top of your script:
pawn Код:
new Kills[MAX_PLAYERS];
OnGameModeInit:
pawn Код:
SetTimer("CheckKills",100,1);
Anywhere:
pawn Код:
public CheckKills(playerid)
{
  if(Kills[playerid] == 5)
  {
    Kills[playerid] = 0;
    for(new i = 0; i <= MAX_PLAYERS; i++)
    {
        SetPlayerMarkerForPlayer(playerid,i,0xFF0000FF);//This sets all other player markers FOR THAT PLAYER to red. Not sure how to jsut show them.
    }
  }
}
OnPlayerDeath
pawn Код:
Kills[killerid] += 1;
(Untested, But looks like it should work.)
Why you using Kills[killerid] +=1; ? Why not Kills[killerid] ++;?
Ah its the way i write things sometimes i forget about ++;
Reply


Messages In This Thread
Playermarks visible after 5 kills - by ArnoVL - 30.05.2009, 14:34
Re: Playermarks visible after 5 kills - by miokie - 30.05.2009, 15:32
Re: Playermarks visible after 5 kills - by Luka P. - 30.05.2009, 15:37
Re: Playermarks visible after 5 kills - by miokie - 30.05.2009, 15:42
Re: Playermarks visible after 5 kills - by ArnoVL - 30.05.2009, 15:49
Re: Playermarks visible after 5 kills - by member - 30.05.2009, 15:50
Re: Playermarks visible after 5 kills - by ArnoVL - 31.05.2009, 14:31
Re: Playermarks visible after 5 kills - by Backwardsman97 - 31.05.2009, 14:48
Re: Playermarks visible after 5 kills - by Daren_Jacobson - 31.05.2009, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)