First Blood - 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: First Blood (
/showthread.php?tid=217681)
First Blood -
BlackWolf120 - 28.01.2011
hi,
just want to know how to script sth. like first blood code?
Once a new round has started the first player that kills someone gets announced.
Im just not sure how to do the counting...
regards...
Re: First Blood -
Baboon - 28.01.2011
Top of ur script:
Under onplayerdeath:
Код:
killcounter++;
if(killcounter == 1)
{
new fbname[MAX_PLAYER_NAME], fbstring[128];
GetPlayerName(killerid, fbname, sizeof(fbname));
format(fbstring, sizeof(fbstring), "%s has first blood", fbname);
GameTextForAll(fbstring, 2000, 3);
}
Now where you have scripted the round changing, put:
Quote:
killcounter = 0; //to reset the killcounter
|
Re: First Blood -
BlackWolf120 - 28.01.2011
thx,
im going to try it out