[Tutorial] Kill list+ 1+ score and 1000$ dollars system while killing some one
#1

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;
}
Reply
#2

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

Lol, i pushed wrong button XDD
Reply
#4

Thanks, thats a very usefull snippet of code.
Reply
#5

Yah, ty...
Reply
#6

Nice&simple.
Reply
#7

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

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

This is sad.

Click Here!
Reply
#10

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
Reply
#11

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


useless part, make it to one line....
Reply
#12

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

just...
=\
Reply
#14

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


Forum Jump:


Users browsing this thread: 1 Guest(s)