09.05.2020, 18:25
Hi i have a problem when player die he get +1 score i dont know why because on my script onplayerdeath i think thats correct
When player die on car its like he Killing himself take look at image
[IMG][/IMG]
Can any one know the solution ?
Quote:
public OnPlayerDeath(playerid, killerid, reason){ SendDeathMessage(killerid, playerid, reason); if(killerid != INVALID_PLAYER_ID) { SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); } GivePlayerMoney(killerid, 2500); GivePlayerMoney(playerid, -1000); return 1; } |
[IMG][/IMG]
Can any one know the solution ?