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.
- */
- //----- CODE IN SPANISH
- #include <a_samp>
- public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart){
- #define GUN_HEADSHOT (34) //Sniper Rifle
- new textpart[24], datainfo[100];
- if(playerid!=INVALID_PLAYER_ID){
- if(weaponid==GUN_HEADSHOT){
- switch(bodypart){
- case 3..8:{GameTextForPlayer(playerid,"~n~~n~~w~estas~n~~r~herido!.",5000,5);\
- SetPlayerChatBubble(playerid,"{C86400}herido!.",-1,20.0,15*1000);}
- case 9:{GameTextForPlayer(playerid,"~n~~n~~w~estas~n~~r~muerto!.",5000,5);\
- SetPlayerChatBubble(playerid,"{C86400}muerto!.",-1,20.0,15*1000);\
- GameTextForPlayer(issuerid,"~n~~n~~r~head shot~n~~w~realizado!.",5000,5);}}
- switch(bodypart){
- case 3:{textpart="el torso";}
- case 4:{textpart="la cintura";}
- case 5:{textpart="el brazo izquierdo";}
- case 6:{textpart="el brazo derecho";}
- case 7:{textpart="la pierna izquierda";}
- case 8:{textpart="la pierna derecha";}
- case 9:{textpart="la cabeza";SetPlayerHealth(playerid,0.0);} }
- PlayAudioStreamForPlayer(playerid,""); //EDIT: me olvide del sonido :D
- for(new msg=0; msg<32; msg++){SendClientMessage(playerid, -1, " ");}
- format(datainfo,sizeof(datainfo),"{FFFFFF}INFO: {C86400}haz recibido un disparo en {FFBC00}%s{FFFFFF}!.",textpart);
- SendClientMessage(playerid,-1,datainfo);
- PlayAudioStreamForPlayer(issuerid,""); //EDIT: me olvide del sonido :D
- for(new msg=0; msg<32; msg++){SendClientMessage(issuerid, -1, " ");}
- format(datainfo,sizeof(datainfo),"{FFFFFF}INFO: {C86400}le haz dado un disparo en {FFBC00}%s {FFFFFF}a tu objetivo{FFFFFF}!.",textpart);
- SendClientMessage(issuerid,-1,datainfo);
- }
- } return true;
- }
- //----- CODE IN ENGLISH
- #include <a_samp>
- public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart){
- #define GUN_HEADSHOT (34) //Sniper Rifle
- new textpart[24], datainfo[100];
- if(playerid!=INVALID_PLAYER_ID){
- if(weaponid==GUN_HEADSHOT){
- switch(bodypart){
- case 3..8:{GameTextForPlayer(playerid,"~n~~n~~w~these~n~~r~injured!.",5000,5);\
- SetPlayerChatBubble(playerid,"{C86400}injured!.",-1,20.0,15*1000);}
- case 9:{GameTextForPlayer(playerid,"~n~~n~~w~these~n~~r~dead!.",5000,5);\
- SetPlayerChatBubble(playerid,"{C86400}dead!.",-1,20.0,15*1000);\
- GameTextForPlayer(issuerid,"~n~~n~~r~head shot~n~~w~done!.",5000,5);}}
- switch(bodypart){
- case 3:{textpart="TORSO";}
- case 4:{textpart="GROIN";}
- case 5:{textpart="LEFT ARM";}
- case 6:{textpart="RIGHT ARM";}
- case 7:{textpart="LEFT LEG";}
- case 8:{textpart="RIGHT LEG";}
- case 9:{textpart="HEAD";SetPlayerHealth(playerid,0.0);} }
- PlayAudioStreamForPlayer(playerid,""); //EDIT: I forget the sound :D
- for(new msg=0; msg<32; msg++){SendClientMessage(playerid, -1, " ");}
- format(datainfo,sizeof(datainfo),"{FFFFFF}INFO: {C86400}beam been shot en {FFBC00}%s{FFFFFF}!.",textpart);
- SendClientMessage(playerid,-1,datainfo);
- PlayAudioStreamForPlayer(issuerid,""); //EDIT: I forget the soundo :D
- for(new msg=0; msg<32; msg++){SendClientMessage(issuerid, -1, " ");}
- format(datainfo,sizeof(datainfo),"{FFFFFF}INFO: {C86400}beam given him a shot in {FFBC00}%s {FFFFFF}your target{FFFFFF}!.",textpart);
- SendClientMessage(issuerid,-1,datainfo);
- }
- } return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement