[SOLVED] 3 problem's! (1 problem still unsolved, but stopped solving.) -
Mechscape - 24.12.2009
1 PROBLEM = SOLVED
---------------------------------------------------------------------------------------------------------------
2 PROBLEM = SOLVED
---------------------------------------------------------------------------------------------------------------
3 PROBLEM = SOLVED
Re: [UNSOLVED] Need help, with 3 problem's. -
Puzi - 24.12.2009
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
Re: [UNSOLVED] Need help, with 3 problem's. -
Mechscape - 24.12.2009
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.
Re: [UNSOLVED] Need help, with 3 problem's. -
Puzi - 24.12.2009
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
Re: [UNSOLVED] Need help, with 3 problem's. -
Mechscape - 24.12.2009
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.
Re: [UNSOLVED] 3 problem's! -
Puzi - 24.12.2009
Do you have any errors with that code? Or a PAWN Compiler Library error?
Re: [UNSOLVED] 3 problem's! -
Mechscape - 24.12.2009
No. (Without error's and warning's)
Re: [UNSOLVED] 3 problem's! -
Puzi - 24.12.2009
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...
Re: [UNSOLVED] 3 problem's! -
Mechscape - 24.12.2009
Ok, then stop solving. Thanks Puzi, for trying helping.
Re: [SOLVED] 3 problem's! (1 problem still unsolved, but stopped solving.) -
Puzi - 24.12.2009
You're welcome. When I'll find a solution (if I ever do), I'll PM