First Blood
#1

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

Top of ur script:
Код:
new killcounter;
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

Reply
#3

thx,
im going to try it out
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)