Jump to content
  • 0

Best Killer/Sistem WAR


sTr

Question

20 answers to this question

Recommended Posts

nu a cerut un script ci o metoda  :|

ce ar trebui sa faca acest "Best Killer" ?

Deci, sunt 2 aliante care fac un WAR aliantele sunt The Triads-LSV-Grove vs The Mafia-VLA-Ballas, la sfarsitul warului apare un score, si alianta cu cel mai mare scor castiga war-ul si primeste automat 50 drugs, 5000mats, 50000$, si eu vreau sa adaug langa Score, sa scrie si Best Killerul warului, adica cel ce a facut cele mai multe killuri in acest war.

EDIT: Ma poate ajuta cineva ?! :(

RPG.QGAMING.RO

Link to comment
Share on other sites

[pawn]new Kills[MAX_PLAYERS];//global

//OnPlayerDeath

Kills[killerid]++;

//cand se termina war-ul sau altceva

new zaBest;

for(new i;i<MAX_PLAYERS;i++)

{

if(IsPlayerConnected(i))if(zaBest<Kills)zaBest=i;

}

new str[128],name[24];GetPlayerName(zaBest,name,24);

format(str,128,"Best Killer: %s ,kills:%d",name,Kills[zaBest]);

SendClientMessageToAll(~0,str);[/pawn]

Link to comment
Share on other sites

Cateodata mai gresesc si eu :(

[pawn]new Kills[MAX_PLAYERS];//global

//OnPlayerDeath

Kills[killerid]++;

//cand se termina war-ul sau altceva

new zaBest;

for(new i;i<MAX_PLAYERS;i++)

{

if(IsPlayerConnected(i))if(Kills[zaBest]<Kills)zaBest=i;//e Kills[zabest] nu doar zabest

}

new str[128],name[24];GetPlayerName(zaBest,name,24);

format(str,128,"Best Killer: %s ,kills:%d",name,Kills[zaBest]);

SendClientMessageToAll(~0,str);[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.