Guest User

bubua

a guest
Jul 26th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public OnPlayerDeath(playerid, killerid, reason)
  2. {
  3. if(gTeam[killerid] == gTeam[playerid])
  4. {
  5. SendClientMessage(killerid, COLOR_BRIGHTRED, "No TeamKilling");
  6. GivePlayerMoney(killerid, -2000);
  7. SetPlayerHealth(killerid, 0);
  8. }
  9. else
  10. {
  11. SendClientMessage(playerid, COLOR_ORANGE, "Nice Shot");
  12. GivePlayerMoney(killerid, 5000);
  13. }
  14. SendDeathMessage(killerid, playerid, reason);
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment