[SOLVED] 3 problem's! (1 problem still unsolved, but stopped solving.)
#1

1 PROBLEM = SOLVED
---------------------------------------------------------------------------------------------------------------
2 PROBLEM = SOLVED
---------------------------------------------------------------------------------------------------------------
3 PROBLEM = SOLVED
Reply
#2

You define a kill, adding a score by adding this under OnPlayerDeath:

Code:
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
So it would look like this for example:

Code:
public OnPlayerDeath(playerid, killerid, reason)

{
  SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
	SendDeathMessage(killerid, playerid, reason);
	GameTextForPlayer(playerid, "~r~Wasted!", 5, 2);
	SetPlayerColor(playerid,COLOR_GREY);
 	return 1;
}
~ UNTESTED ~

I ain't sure what you mean by the second question and either for third. Do you mean for third like it says on the right side PLAYER (WEAPON PICTURE) PLAYER2?

For example:
Code:
Puzi (Minigun) Tundmatu
If yes, it is scripted in SA-MP already so there is nothing for you to do to make it work. If you kill someone, it will just show up.

Thanks and Regards
Puzi
Reply
#3

Quote:
Originally Posted by Puzi
For example:
Code:
Puzi (Minigun) Tundmatu
If yes, it is scripted in SA-MP already so there is nothing for you to do to make it work. If you kill someone, it will just show up.

Thanks and Regards
Puzi
Hmm, but that doens't show.
Reply
#4

I was wrong, sorry.

You need this:

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
  SendDeathMessage(killerid, playerid, reason);
  return 1;
}
If you have pasted the code I gave you, it should work. If it does not, tell me.

Thanks and Regards
Puzi
Reply
#5

Quote:
Originally Posted by Puzi
I was wrong, sorry.

You need this:

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
  SendDeathMessage(killerid, playerid, reason);
  return 1;
}
If you have pasted the code I gave you, it should work. If it does not, tell me.

Thanks and Regards
Puzi
I have it,

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
	PlayerInfo[killerid][pLevel] ++;
	PlayerInfo[killerid][pKills] ++;
	PlayerInfo[playerid][pDeaths] ++;
	SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
	SendDeathMessage(killerid, playerid, reason);
	return 1;
}
But still doens't work. I go more testing.
// Tested. Still doens't work.
Reply
#6

Do you have any errors with that code? Or a PAWN Compiler Library error?
Reply
#7

No. (Without error's and warning's)
Reply
#8

Hard for me to say to be honest...

https://sampwiki.blast.hk/wiki/SendDeathMessage

I'll try to look for a solution, but I can't guarantee for one, since I never had such a problem. Try removing the semi-colons after the pluses, I bet that will give you more errors, but if not, it might work. I don't see the problem so far...
Reply
#9

Ok, then stop solving. Thanks Puzi, for trying helping.
Reply
#10

You're welcome. When I'll find a solution (if I ever do), I'll PM
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)