Best Killer.... - 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)
+--- Thread: Best Killer.... (
/showthread.php?tid=453551)
Best Killer.... -
JusstinRoller - 25.07.2013
I'm starting to make a dynamic event system but i don't know how to get the best killer..
Please help me!!
Re: Best Killer.... -
JusstinRoller - 25.07.2013
Any help ?
Re: Best Killer.... -
doreto - 25.07.2013
Forum Rules
No Double Posting - There is a modify button
, use it. However, bumping a topic in which you have or require further information is allowed after at least 24 hours. Note that two identical posts appearing at the same time is usually a mistake attributed to lag, and will not be penalizsed (but the second one will be removed).
Provide Details - If you do not get help, please re-evaluate the explanation of the issue you provided, it may not be providing enough information for people to help you.
Provide Code - People are not psychic, if there's an issue in your code they need to see that code. If you are worried about people stealing it, don't be - its nothing special! If you are unwilling to provide code and want help in private, post here and be prepared to wait a long time and pay a lot of money.
Re: Best Killer.... -
JusstinRoller - 26.07.2013
Sure and how can i get help?
Re: Best Killer.... -
JusstinRoller - 26.07.2013
no one can help..
Re: Best Killer.... -
kartik - 26.07.2013
>Provide Code
>If you haven't started coding , at-least provide an algorithm
Re: Best Killer.... -
JusstinRoller - 26.07.2013
PHP код:
for(new winner = 0; winner < MAX_PLAYERS; winner++)
{
SetPlayerPos(winner,x,y,z);
}
like that
Re: Best Killer.... -
JusstinRoller - 27.07.2013
bump.
Re: Best Killer.... -
JusstinRoller - 27.07.2013
Any help?
Re: Best Killer.... -
RajatPawar - 27.07.2013
pawn Код:
new kills[MAX_PLAYERS];
public OnPlayerDeath(..)
{
if killer_id was in an event - check
{
kills[killer_id]++;
}
}
WHERE YOU want to declare the winner
{
new temp = 0;
foreach( new i: Player )
{
if(kills[i] > temp)
{
temp = kills[i];
}
}