[Tutorial] [TUT] Making your own Killing Sprees.
#10

Quote:
Originally Posted by Woet
How is this a tutorial? A tutorial explains things, this is just 'place this code here and act like you understand it'
It doesn't really match a filterscript either because it's not written as one and it's way too simple.
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
 KillingSpree[killerid] ++; // Means that the killer will get 1 kills
 KillingSpree[playerid] = 0; // Means that the player who died his killing spree will be restored to 0.

 if(KillingSpree[killerid] == 3) // It finds if the player is on a Killing Spree of 3 kills , you may change
 {
  // If you want to give the player that has 3 killing spree a reward do something here 
 }
 return 1;
}
Am just a beginner Woet , i explained what each thing means in the code , and i guessed it helped some .

Thanks.
Reply


Messages In This Thread
[TUT] Making your own Killing Sprees. - by Brian_G - 20.06.2010, 01:50
Re: [TUT] Making your own Killing Sprees. - by jurgen - 20.06.2010, 02:05
Re: [TUT] Making your own Killing Sprees. - by Brian_G - 20.06.2010, 02:23
Re: [TUT] Making your own Killing Sprees. - by Lorenc_ - 20.06.2010, 05:27
Re: [TUT] Making your own Killing Sprees. - by Brian_G - 20.06.2010, 09:27
Re: [TUT] Making your own Killing Sprees. - by park4bmx - 20.06.2010, 09:34
Re: [TUT] Making your own Killing Sprees. - by Woet - 20.06.2010, 09:36
Re: [TUT] Making your own Killing Sprees. - by Brian_G - 20.06.2010, 09:38
Re: [TUT] Making your own Killing Sprees. - by [03]Garsino - 20.06.2010, 09:39
Re: [TUT] Making your own Killing Sprees. - by Brian_G - 20.06.2010, 09:39

Forum Jump:


Users browsing this thread: 1 Guest(s)