SA-MP Forums Archive
[Tutorial] Kill list+ 1+ score and 1000$ dollars system while killing some one - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Kill list+ 1+ score and 1000$ dollars system while killing some one (/showthread.php?tid=171894)



Kill list+ 1+ score and 1000$ dollars system while killing some one - Mean - 28.08.2010

This is kill list system+ 1+ score while killing+ 1000$ dollars while killing, and you loose 500 dollars for dying
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendClientMessage(killerid,COLOR_GREEN, "You have killed someone, you got +$1000 and 1 Score!");// You can replace "someone" with stream
    GivePlayerMoney(killerid,1000);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    SendClientMessage(playerid,COLOR_BRIGHTRED, "You died, you lost $500");
    GivePlayerMoney(playerid,-500);
    if(killerid == INVALID_PLAYER_ID)
    {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
    }
     else
    {
    SendDeathMessage(killerid,playerid,reason);
}
return 1;
}



Re: Kill list - [XST]O_x - 28.08.2010

EDIT: I saw SSSeq?
Anyway,it's better now.


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - Mean - 28.08.2010

Lol, i pushed wrong button XDD


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - Creation - 29.08.2010

Thanks, thats a very usefull snippet of code.


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - Mean - 08.09.2010

Yah, ty...


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - aco_SRBIJA - 04.10.2010

Nice&simple.


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - Roymer - 04.10.2010

Quote:
Originally Posted by aco_SRBIJA
View Post
Nice&simple.
Yes, Nice&simple


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - wups - 04.10.2010

Quote:
Originally Posted by Roymer
View Post
Yes, Nice&simple
Yes, thats realy Nice&simple


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - Scenario - 04.10.2010

This is sad.

Click Here!


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - DragonBlaster50 - 04.10.2010

Quote:
Originally Posted by RealCop228
View Post
This is sad.

Click Here!
Go away if thats all you gotta say.

-----------------------------------------

Nice and Simple, but it could've been a lot less lines In my way


AW: Kill list+ 1+ score and 1000$ dollars system while killing some one - Trooper[Y] - 04.10.2010

if(killerid == INVALID_PLAYER_ID)
{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
}
else
{
SendDeathMessage(killerid,playerid,reason);


useless part, make it to one line....


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - Kyosaur - 04.10.2010

Quote:
Originally Posted by DragonBlaster50
View Post
Go away if thats all you gotta say.

-----------------------------------------

Nice and Simple, but it could've been a lot less lines In my way
He is absolutely correct for posting that link, and saying how horrid this tutorial is.



This explains nothing at all, and was even posted in the completely wrong section. Why bother posting a snippet of code and call it a tutorial? You should've posted this in the useful snippets section.


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - [CripZ]SERCH - 09.10.2010

just...
=\


Re: Kill list+ 1+ score and 1000$ dollars system while killing some one - DevilG - 09.10.2010

This.. Is a tutorial..?
I don't see you're explaining things, I even wonder whether you understand what you're posting or not..