help please
#1

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

You probably have it on OnPlayerDeath and in the command. Post the code.
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)