How to fix this?Please help!
#3

Quote:

public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(playerid));
new playercash;
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
ResetPlayerMoney(playerid);
} else {
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1 );
playercash = GetPlayerMoney(playerid);
if (playercash > 0) {
GivePlayerMoney(killerid, playercash);
ResetPlayerMoney(playerid);
}
else
{
}
}
PlayerInfo[killerid][pUbojstva]++;
PlayerInfo[playerid][pSmrti]++;

return 1;
}

And how to make when i kill someone to get one score per kill 1+ and not like a score by money
Reply


Messages In This Thread
How to fix this?Please help! - by edviN123 - 29.11.2014, 17:47
Re: How to fix this?Please help! - by Runn3R - 29.11.2014, 17:49
Re: How to fix this?Please help! - by edviN123 - 29.11.2014, 18:28
Re: How to fix this?Please help! - by Runn3R - 29.11.2014, 18:39
Re: How to fix this?Please help! - by edviN123 - 29.11.2014, 18:44
Re: How to fix this?Please help! - by edviN123 - 29.11.2014, 20:37
Re: How to fix this?Please help! - by Dizzle - 29.11.2014, 21:21
Re: How to fix this?Please help! - by edviN123 - 29.11.2014, 21:34
Re: How to fix this?Please help! - by Dizzle - 29.11.2014, 21:42
Re: How to fix this?Please help! - by edviN123 - 29.11.2014, 21:50

Forum Jump:


Users browsing this thread: 1 Guest(s)