help please - 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: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help please (
/showthread.php?tid=75458)
help please -
HuRRiCaNe - 02.05.2009
Only 1 thing with my script, when i use /kill or kill somebody , the killing or suiciding msg appears double :S
I need a little bit help in this and why is this problen happening
THANKS ,
Alfixer
Re: help please -
[HiC]TheKiller - 02.05.2009
You probably have it on OnPlayerDeath and in the command. Post the code.
Re: help please -
HuRRiCaNe - 02.05.2009
the player death code is here
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new playercash;
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
ResetPlayerMoney(playerid);
} else {
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
playercash = GetPlayerMoney(playerid);
if (playercash > 800) {
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
}
}
return 1;
}