24.07.2009, 14:31
Quote:
Originally Posted by [GD59
Doberman™ [Styrna] ]
Ehhh, i tested, it doesn't work, can you just fix that code?: Код:
public OnPlayerDeath(playerid, killerid, reason) { new playercash; if(killerid == INVALID_PLAYER_ID) { SendDeathMessage(INVALID_PLAYER_ID,playerid,reason); GivePlayerMoney(playerid, -500); } else { SendDeathMessage(killerid,playerid,reason); SetPlayerScore(killerid,GetPlayerScore(killerid)+1); playercash = GetPlayerMoney(playerid); if (playercash > 0) { GivePlayerMoney(killerid, 500); } else { } } return 1; } |