OnPlayerDeath ?????
#1

i want if player die take from him 1 score and 2000 money and killer get 4000 money and 2 score

but its give killer only 100 money and 2 score and who die did not take from him score or money

this in my gamemode :

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
if(
killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killeridGetPlayerScore(killerid)+2);
GivePlayerMoney(killerid4000);
SendClientMessage(killerid, -1"Congratulation!You have gained 4000$ and +2 score.");
SetPlayerScore(playeridGetPlayerScoreplayerid ) -);
GivePlayerMoney(playerid, -2000);
SendClientMessage(playerid, -1"You lost 2000$ because you got killed.");
}
return 
1
Reply


Messages In This Thread
OnPlayerDeath ????? - by NuLIO - 11.07.2012, 18:01
Re: OnPlayerDeath ????? - by clarencecuzz - 11.07.2012, 18:04
Re: OnPlayerDeath ????? - by NuLIO - 11.07.2012, 18:13
Re: OnPlayerDeath ????? - by Captain_Mani - 12.07.2012, 00:53
Re: OnPlayerDeath ????? - by NuLIO - 12.07.2012, 01:29

Forum Jump:


Users browsing this thread: 1 Guest(s)