04.08.2016, 12:26
I Have made this
It give us score and money when we kill but the problem is when he hit the enemy with car and he is not killed, it give us score and money or sometimes automatically without killing enemy it give us score and money.. how to fix that??
Код:
public OnPlayerDeath(playerid, killerid, reason) { SendClientMessage(killerid, COLOR_ORANGE, "Good job gangsta! You smoked the nigga! [+$2500 +1 Score]"); GivePlayerMoney(killerid, 2500); SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); GivePlayerMoney(playerid, -1000); SendDeathMessage(killerid, playerid, reason); return 1; }