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>
- /*
- 'Insecticide >F.R.I.K.I<'| kills all kinds of insects instantly!.
- * protects the environment from the 'pesky bugs' to live in harmony.
- ¿That is?:
- * is a minigame to kill each other, a number of dead set, you'll earn a monetary reward
- Credits:
- * OTACON (creation / processing code)
- * ADRI1 and 'other unmentionables'( involuntary idea )
- Dedication:
- * ADRI1 and 'other unmentionables'( involuntary idea )
- */
- #define REWARD_INSECTICIDE (10000) //the maximum reward
- #define VALUE_INSECTICIDE (100) //the value of the insecticide
- #define MAX_INSECTICIDE (50) //maximum kill insects
- #define AMMO_INSECTICIDE (100) //insecticide ammunition gun
- #define GUN_INSECTICIDE (41) //the id of the insecticide weapon
- new bool:KillInsects[MAX_PLAYERS],
- CountingDeadInsects[MAX_PLAYERS];
- COMMAND:insecticide(playerid, params[]){
- if(GetPlayerMoney(playerid)<VALUE_INSECTICIDE) return SendClientMessage(playerid,-1,"{0099FF}INFO: You do not have enough money to buy a 'Insecticide >F.R.I.K.I<'{FFFFFF}!.");
- if(KillInsects[playerid]==true) return SendClientMessage(playerid,-1,"{0099FF}INFO: You already have a 'Insecticide >F.R.I.K.I<'{FFFFFF}!.");
- KillInsects[playerid]=true;
- GivePlayerWeapon(playerid,GUN_INSECTICIDE,AMMO_INSECTICIDE);
- GivePlayerMoney(playerid,(0-VALUE_INSECTICIDE));
- GameTextForPlayer(playerid, "~w~these protected ~n~~g~kills insects!.", 5000, 3);
- SendClientMessage(playerid,-1,"{0099FF}INFO: You have purchased a 'Insecticide >F.R.I.K.I<' correctly{FFFFFF}!.");
- return true;
- }
- public OnPlayerDeath(playerid, killerid, reason){
- new data[144];
- if(playerid!=INVALID_PLAYER_ID && KillInsects[playerid]==true){
- if(GetPlayerWeapon(playerid)==GUN_INSECTICIDE){
- CountingDeadInsects[playerid]++;
- CountingDeadInsects[killerid]--;
- GameTextForPlayer(playerid, "~g~dead insect!.", 5000, 3);
- SendClientMessage(playerid,-1,"{0099FF}INFO: You have killed a 'insect', congratulations one less{FFFFFF}!.");
- SendClientMessage(killerid,-1,"{0099FF}INFO: You have been exterminated by the 'Insecticide >F.R.I.K.I<', un insecto menos{FFFFFF}!.");
- if(CountingDeadInsects[playerid]>=MAX_INSECTICIDE){
- SendClientMessage(playerid,-1,"{0099FF}INFO: Congratulations you have exterminated all insects, society is safe{FFFFFF}!.");
- SendClientMessage(playerid,-1,"{0099FF}INFO:{You have received a reward from the company to clean up the planet de'Insectos unbearable 'FFFFFF}!.");
- format(data,sizeof(data),"{FFFFFF}REWARD VALUE: {0099FF}%s",REWARD_INSECTICIDE);
- SendClientMessage(playerid,-1,data);
- GivePlayerMoney(playerid,(0+REWARD_INSECTICIDE));
- CountingDeadInsects[playerid]=0;
- KillInsects[playerid]=false;
- GameTextForPlayer(playerid, "~w~these unprotected ~n~~r~careful with insects.!.", 5000, 3);
- }
- }
- }
- return true;
- }
- public OnPlayerDisconnect(playerid, reason){
- CountingDeadInsects[playerid]=0;
- KillInsects[playerid]=false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement