Guest User

codigo

a guest
Aug 28th, 2011
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. public OnPlayerDeath(playerid, killerid, reason)
  2. {
  3. SetPlayerHealth(playerid,0);
  4. new nome[MAX_PLAYER_NAME], nome2[MAX_PLAYER_NAME],string[256];
  5. GetPlayerName(playerid, nome, sizeof(nome));
  6. GetPlayerName(killerid, nome2, sizeof(nome2));
  7. if(PX1 == 2 && GetPVarInt(playerid, "TipoX1") == 1 && GetPVarInt(killerid, "TipoX1") == 1){
  8. if(killerid == INVALID_PLAYER_ID)
  9. format(string,sizeof(string),"[X1W] '%s' se matou no x1 Walk.(/x1w)",nome);
  10. else
  11. format(string,sizeof(string),"[X1W] '%s' matou '%s' no x1 Walk.(/x1w)",nome2, nome);
  12. SendClientMessageToAll(COLOR_YELLOW, string);
  13. PX1 = 0;
  14. SetPVarInt(killerid,"TipoX1",0);
  15. SetPVarInt(playerid,"TipoX1",0);
  16. SpawnPlayer(killerid);
  17. SetPVarInt(killerid,"Bloqueio",0);
  18. SetPVarInt(playerid,"Bloqueio",0);
  19. }
  20. if(PX2 == 2 && GetPVarInt(playerid, "TipoX1") == 2 && GetPVarInt(killerid, "TipoX1") == 2){
  21. if(killerid == INVALID_PLAYER_ID)
  22. format(string,sizeof(string),"[X1R] '%s' se matou no x1 Run.(/x1r)",nome);
  23. else
  24. format(string,sizeof(string),"[X1R] '%s' matou '%s' no x1 Run.(/x1r)",nome2, nome);
  25. SendClientMessageToAll(COLOR_YELLOW, string);
  26. PX2 = 0;
  27. SetPVarInt(killerid,"TipoX1",0);
  28. SetPVarInt(playerid,"TipoX1",0);
  29. SpawnPlayer(killerid);
  30. SetPVarInt(killerid,"Bloqueio",0);
  31. SetPVarInt(playerid,"Bloqueio",0);
  32. }
  33. if(GetPVarInt(playerid, "Sniper") == 1 && GetPVarInt(killerid, "Sniper") == 1){
  34. if(killerid == INVALID_PLAYER_ID)
  35. format(string,sizeof(string),"[SNIPER] '%s' se matou no Sniper.(/sniper)",nome);
  36. else
  37. format(string,sizeof(string),"[SNIPER] '%s' matou '%s' na Arena Sniper(/sniper)",nome2, nome);
  38. SendClientMessageToAll(COLOR_YELLOW, string);
  39. SendClientMessage(killerid,COLOR_GREEN,"[INFO]VocĂȘ Ganhou Colete e Vida!");
  40. GameTextForPlayer(killerid,"Parabens",3000,4);
  41. SetPlayerHealth(killerid,100);
  42. SetPlayerArmour(killerid,100);
  43. SetPVarInt(playerid,"Sniper",0);
  44. SetPVarInt(playerid,"Bloqueio",0);
  45. }
  46. SendDeathMessage(killerid,playerid,reason);
  47. SetPlayerVirtualWorld(playerid,0);
  48. SetPVarInt(playerid,"Bloqueio",0);
  49. return 1;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment