Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
- *
- * Codigo Creado Por OTACON
- *
- * CREDITOS:
- * OTACON: Realizacion y Idea de creacion del code.
- * TÙ: Modificacion libremente respetando lo mencionado ;).
- *
- * NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- *
- * Prohibido TOTALMENTE el Robo de Créditos o la
- * Publicación de este FILTERSCRIPT sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
- * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
- *
- * Code Created By OTACON
- *
- * CREDITS:
- * OTACON: Idea Making and code creation.
- * YOUR: Modification freely respecting the above ;).
- *
- * NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
- *
- * FULLY spaces Theft Credit or
- * Publication of this FILTERSCRIPT without my permission.
- */
- #include <a_samp>
- #include <zcmd>
- /*
- 'Insecticida >F.R.I.K.I<'| extermina todo tipos de insectos al instante!.
- * protege al medio ambiente de los 'insectos molestos' para vivir en armonia.
- ¿En que consiste?:
- * es un mini juego para matarse entre si, a una cantidad de muertos establecido, ganaras una recompensa monetaria
- Creditos:
- * OTACON (creacion/elaboracion del codigo)
- * ADRI1 y 'OTROS INNOMBRABLES'(idea involuntaria )
- Dedicacion:
- * ADRI1 y 'OTROS INNOMBRABLES'(idea involuntaria)
- */
- #define RECOMPENSA_INSECTICIDA (10000) //el maximo de recompensa
- #define VALOR_INSECTICIDA (100) //el valor del insecticida
- #define MAX_INSECTICIDA (50) //el maximo de insectos a matar
- #define MUNICION_INSECTICIDA (100) //la municion del del arma insecticida
- #define ARMA_INSECTICIDA (41) //el id del arma insecticida
- new bool:MataInsectos[MAX_PLAYERS],
- ContandoInsectosMuertos[MAX_PLAYERS];
- COMMAND:insecticida(playerid, params[]){
- 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}!.");
- if(MataInsectos[playerid]==true) return SendClientMessage(playerid,-1,"{0099FF}INFO: Usted ya tiene un 'Insecticida >F.R.I.K.I<'{FFFFFF}!.");
- MataInsectos[playerid]=true;
- GivePlayerWeapon(playerid,ARMA_INSECTICIDA,MUNICION_INSECTICIDA);
- GivePlayerMoney(playerid,(0-VALOR_INSECTICIDA));
- GameTextForPlayer(playerid, "~w~estas protegido ~n~~g~mata insectos!.", 5000, 3);
- SendClientMessage(playerid,-1,"{0099FF}INFO: Usted ha comprado un 'Insecticida >F.R.I.K.I<' correctamente{FFFFFF}!.");
- return true;
- }
- public OnPlayerDeath(playerid, killerid, reason){
- new data[144];
- if(playerid!=INVALID_PLAYER_ID && MataInsectos[playerid]==true){
- if(GetPlayerWeapon(playerid)==ARMA_INSECTICIDA){
- ContandoInsectosMuertos[playerid]++;
- ContandoInsectosMuertos[killerid]--;
- GameTextForPlayer(playerid, "~g~insecto muerto!.", 5000, 3);
- SendClientMessage(playerid,-1,"{0099FF}INFO: Usted ha matado a un 'Insecto', Felicidades uno meno{FFFFFF}!.");
- SendClientMessage(killerid,-1,"{0099FF}INFO: Usted ha sido exterminado por el 'Insecticida >F.R.I.K.I<', un insecto menos{FFFFFF}!.");
- if(ContandoInsectosMuertos[playerid]>=MAX_INSECTICIDA){
- SendClientMessage(playerid,-1,"{0099FF}INFO: Felicidades usted ha exterminado a todosl os insectos, la sociedad esta a salvo{FFFFFF}!.");
- SendClientMessage(playerid,-1,"{0099FF}INFO: Usted ha recibido una decompennsa de la sociedad por limpiar el planeta de'Insectos insoportables'{FFFFFF}!.");
- format(data,sizeof(data),"{FFFFFF}VALOR RECOMPENSA: {0099FF}%s",RECOMPENSA_INSECTICIDA);
- SendClientMessage(playerid,-1,data);
- GivePlayerMoney(playerid,(0+RECOMPENSA_INSECTICIDA));
- ContandoInsectosMuertos[playerid]=0;
- MataInsectos[playerid]=false;
- GameTextForPlayer(playerid, "~w~estas desprotegido ~n~~r~cuidado con los insectos!.", 5000, 3);
- }
- }
- }
- return true;
- }
- public OnPlayerDisconnect(playerid, reason){
- ContandoInsectosMuertos[playerid]=0;
- MataInsectos[playerid]=false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement