Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(gTeam[killerid] == gTeam[playerid])
- {
- SendClientMessage(killerid, COLOR_BRIGHTRED, "No TeamKilling");
- GivePlayerMoney(killerid, -2000);
- SetPlayerHealth(killerid, 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_ORANGE, "Nice Shot");
- GivePlayerMoney(killerid, 5000);
- }
- SendDeathMessage(killerid, playerid, reason);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment