pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin - collaborative debugging tool View Help


Posted by DanielSNM on Sun 1 Jun 06:21
report abuse | View followups from Zombie | download | new post

  1. #include <a_samp>
  2.  
  3. //Kills Nesesarios
  4. #define Multikills 3
  5. #define Ultrakills 5
  6. #define Asesino    8
  7. #define Arrasador  12
  8. #define Dios       20
  9.  
  10. #define COLOR_GREEN 0x33AA33AA
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.         print("\n--------------------------------------");
  15.         print(" Kills Counter By DanielSNM ®  v1.1");
  16.         print("---(Ideal Para: DM)-------------------\n");
  17.         return 1;
  18. }
  19.  
  20. new kills[MAX_PLAYERS];
  21. new pname[24];
  22. new string[256];
  23.  
  24. public OnPlayerSpawn(playerid)
  25. {
  26.         kills[playerid]=0;
  27.         return 1;
  28. }
  29.  
  30. public OnPlayerDeath(playerid, killerid, reason)
  31. {
  32.         kills[killerid]++;
  33.         if(kills[killerid]==Multikills) {
  34.         GetPlayerName(killerid,pname,24);
  35.         format(string,256,"-- %s esta Multikill! (+500)",pname);
  36.         SendClientMessageToAll(COLOR_GREEN,string);
  37.         GivePlayerMoney(killerid,500);
  38.         }
  39.         if(kills[killerid]==Ultrakills) {
  40.         GetPlayerName(killerid,pname,24);
  41.         format(string,256,"-- %s esta Ultrakill! (+1000)",pname);
  42.         SendClientMessageToAll(COLOR_GREEN,string);
  43.         GivePlayerMoney(killerid,1000);
  44.         }
  45.         if(kills[killerid]==Asesino) {
  46.         GetPlayerName(killerid,pname,24);
  47.         format(string,256,"-- %s esta Asesino!!! (+1500)",pname);
  48.         SendClientMessageToAll(COLOR_GREEN,string);
  49.         GivePlayerMoney(killerid,1500);
  50.         }
  51.         if(kills[killerid]==Arrasador) {
  52.         GetPlayerName(killerid,pname,24);
  53.         format(string,256,"-- %s esta Arrasando!!! (+2000)",pname);
  54.         SendClientMessageToAll(COLOR_GREEN,string);
  55.         GivePlayerMoney(killerid,2000);
  56.         }
  57.         if(kills[killerid]==Dios) {
  58.         GetPlayerName(killerid,pname,24);
  59.         format(string,256,"-- %s es Dios!!!!! (+2500)",pname);
  60.         SendClientMessageToAll(COLOR_GREEN,string);
  61.         GivePlayerMoney(killerid,2500);
  62.         }
  63.         return 1;
  64. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post