Advertisement
OtaconEvil

[ES] 'Insecticida >F.R.I.K.I<'| exterminador de iInsectos.

Apr 15th, 2014
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.43 KB | None | 0 0
  1. /*
  2.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  3.     *
  4.     * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  6.     *
  7.     * Codigo Creado Por OTACON
  8.     *
  9.     * CREDITOS:
  10.     *     OTACON: Realizacion y Idea de creacion del code.
  11.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  12.     *
  13.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  14.     *
  15.     *                Prohibido TOTALMENTE el Robo de Créditos o la
  16.     *                  Publicación de este FILTERSCRIPT sin Mi Permiso.
  17. */
  18. /*
  19.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  20.     *
  21.     * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
  22.     * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
  23.     *
  24.     * Code Created By OTACON
  25.     *
  26.     * CREDITS:
  27.     *     OTACON: Idea Making and code creation.
  28.     *     YOUR: Modification freely respecting the above ;).
  29.     *
  30.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  31.     *
  32.     *                        FULLY spaces Theft Credit or
  33.     *                 Publication of this FILTERSCRIPT without my permission.
  34. */
  35. #include <a_samp>
  36. #include <zcmd>
  37. /*
  38.     'Insecticida >F.R.I.K.I<'| extermina todo tipos de insectos al instante!.
  39.      * protege al medio ambiente de los 'insectos molestos' para vivir en armonia.
  40.      
  41.      ¿En que consiste?:
  42.      * es un mini juego para matarse entre si, a una cantidad de muertos establecido, ganaras una recompensa monetaria
  43.      
  44.      Creditos:
  45.      * OTACON (creacion/elaboracion del codigo)
  46.      * ADRI1 y 'OTROS INNOMBRABLES'(idea involuntaria )
  47.      
  48.      Dedicacion:
  49.      * ADRI1 y 'OTROS INNOMBRABLES'(idea involuntaria)
  50. */
  51.  
  52. #define RECOMPENSA_INSECTICIDA (10000) //el maximo de recompensa
  53. #define VALOR_INSECTICIDA (100) //el valor  del insecticida
  54. #define MAX_INSECTICIDA (50) //el maximo de insectos a matar
  55. #define MUNICION_INSECTICIDA (100) //la municion del del arma insecticida
  56. #define ARMA_INSECTICIDA (41) //el id del arma insecticida
  57. new bool:MataInsectos[MAX_PLAYERS],
  58. ContandoInsectosMuertos[MAX_PLAYERS];
  59.  
  60. COMMAND:insecticida(playerid, params[]){
  61.     if(GetPlayerMoney(playerid)<VALOR_INSECTICIDA) return SendClientMessage(playerid,-1,"{0099FF}INFO: Usted no tiene suficiente dinero para un 'Insecticida >F.R.I.K.I<'{FFFFFF}!.");
  62.     if(MataInsectos[playerid]==true) return SendClientMessage(playerid,-1,"{0099FF}INFO: Usted ya tiene un 'Insecticida >F.R.I.K.I<'{FFFFFF}!.");
  63.     MataInsectos[playerid]=true;
  64.     GivePlayerWeapon(playerid,ARMA_INSECTICIDA,MUNICION_INSECTICIDA);
  65.     GivePlayerMoney(playerid,(0-VALOR_INSECTICIDA));
  66.     GameTextForPlayer(playerid, "~w~estas protegido ~n~~g~mata insectos!.", 5000, 3);
  67.     SendClientMessage(playerid,-1,"{0099FF}INFO: Usted ha comprado un 'Insecticida >F.R.I.K.I<' correctamente{FFFFFF}!.");
  68.     return true;
  69. }
  70. public OnPlayerDeath(playerid, killerid, reason){
  71.     new data[144];
  72.     if(playerid!=INVALID_PLAYER_ID && MataInsectos[playerid]==true){
  73.         if(GetPlayerWeapon(playerid)==ARMA_INSECTICIDA){
  74.             ContandoInsectosMuertos[playerid]++;
  75.             ContandoInsectosMuertos[killerid]--;
  76.             GameTextForPlayer(playerid, "~g~insecto muerto!.", 5000, 3);
  77.             SendClientMessage(playerid,-1,"{0099FF}INFO: Usted ha matado a un 'Insecto', Felicidades uno meno{FFFFFF}!.");
  78.             SendClientMessage(killerid,-1,"{0099FF}INFO: Usted ha sido exterminado por el 'Insecticida >F.R.I.K.I<', un insecto menos{FFFFFF}!.");
  79.             if(ContandoInsectosMuertos[playerid]>=MAX_INSECTICIDA){
  80.                 SendClientMessage(playerid,-1,"{0099FF}INFO: Felicidades usted ha exterminado a todosl os insectos, la sociedad esta a salvo{FFFFFF}!.");
  81.                 SendClientMessage(playerid,-1,"{0099FF}INFO: Usted ha recibido una decompennsa de la sociedad por limpiar el planeta de'Insectos insoportables'{FFFFFF}!.");
  82.                 format(data,sizeof(data),"{FFFFFF}VALOR RECOMPENSA: {0099FF}%s",RECOMPENSA_INSECTICIDA);
  83.                 SendClientMessage(playerid,-1,data);
  84.                 GivePlayerMoney(playerid,(0+RECOMPENSA_INSECTICIDA));
  85.                 ContandoInsectosMuertos[playerid]=0;
  86.                 MataInsectos[playerid]=false;
  87.                 GameTextForPlayer(playerid, "~w~estas desprotegido ~n~~r~cuidado con los insectos!.", 5000, 3);
  88.             }
  89.         }
  90.     }
  91.     return true;
  92. }
  93. public OnPlayerDisconnect(playerid, reason){
  94.     ContandoInsectosMuertos[playerid]=0;
  95.     MataInsectos[playerid]=false;
  96.     return true;
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement