Advertisement
OtaconEvil

[FS] Nuevo head shot (SA-MP v0.3z) By OTACON

Jan 16th, 2014
1,529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.64 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.  
  36. //----- CODE IN SPANISH
  37.  
  38. #include <a_samp>
  39. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart){
  40.     #define GUN_HEADSHOT (34) //Sniper Rifle
  41.     new textpart[24], datainfo[100];
  42.     if(playerid!=INVALID_PLAYER_ID){
  43.         if(weaponid==GUN_HEADSHOT){
  44.             switch(bodypart){
  45.                 case 3..8:{GameTextForPlayer(playerid,"~n~~n~~w~estas~n~~r~herido!.",5000,5);\
  46.                 SetPlayerChatBubble(playerid,"{C86400}herido!.",-1,20.0,15*1000);}
  47.                 case 9:{GameTextForPlayer(playerid,"~n~~n~~w~estas~n~~r~muerto!.",5000,5);\
  48.                 SetPlayerChatBubble(playerid,"{C86400}muerto!.",-1,20.0,15*1000);\
  49.                 GameTextForPlayer(issuerid,"~n~~n~~r~head shot~n~~w~realizado!.",5000,5);}}
  50.             switch(bodypart){
  51.                 case 3:{textpart="el torso";}
  52.                 case 4:{textpart="la cintura";}
  53.                 case 5:{textpart="el brazo izquierdo";}
  54.                 case 6:{textpart="el brazo derecho";}
  55.                 case 7:{textpart="la pierna izquierda";}
  56.                 case 8:{textpart="la pierna derecha";}
  57.                 case 9:{textpart="la cabeza";SetPlayerHealth(playerid,0.0);} }
  58.             PlayAudioStreamForPlayer(playerid,""); //EDIT: me olvide del sonido :D
  59.             for(new msg=0; msg<32; msg++){SendClientMessage(playerid, -1, " ");}
  60.             format(datainfo,sizeof(datainfo),"{FFFFFF}INFO: {C86400}haz recibido un disparo en {FFBC00}%s{FFFFFF}!.",textpart);
  61.             SendClientMessage(playerid,-1,datainfo);
  62.             PlayAudioStreamForPlayer(issuerid,""); //EDIT: me olvide del sonido :D
  63.             for(new msg=0; msg<32; msg++){SendClientMessage(issuerid, -1, " ");}
  64.             format(datainfo,sizeof(datainfo),"{FFFFFF}INFO: {C86400}le haz dado un disparo en {FFBC00}%s {FFFFFF}a tu objetivo{FFFFFF}!.",textpart);
  65.             SendClientMessage(issuerid,-1,datainfo);
  66.         }
  67.     } return true;
  68. }
  69.  
  70. //----- CODE IN ENGLISH
  71.  
  72. #include <a_samp>
  73. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart){
  74.     #define GUN_HEADSHOT (34) //Sniper Rifle
  75.     new textpart[24], datainfo[100];
  76.     if(playerid!=INVALID_PLAYER_ID){
  77.         if(weaponid==GUN_HEADSHOT){
  78.             switch(bodypart){
  79.                 case 3..8:{GameTextForPlayer(playerid,"~n~~n~~w~these~n~~r~injured!.",5000,5);\
  80.                 SetPlayerChatBubble(playerid,"{C86400}injured!.",-1,20.0,15*1000);}
  81.                 case 9:{GameTextForPlayer(playerid,"~n~~n~~w~these~n~~r~dead!.",5000,5);\
  82.                 SetPlayerChatBubble(playerid,"{C86400}dead!.",-1,20.0,15*1000);\
  83.                 GameTextForPlayer(issuerid,"~n~~n~~r~head shot~n~~w~done!.",5000,5);}}
  84.             switch(bodypart){
  85.                 case 3:{textpart="TORSO";}
  86.                 case 4:{textpart="GROIN";}
  87.                 case 5:{textpart="LEFT ARM";}
  88.                 case 6:{textpart="RIGHT ARM";}
  89.                 case 7:{textpart="LEFT LEG";}
  90.                 case 8:{textpart="RIGHT LEG";}
  91.                 case 9:{textpart="HEAD";SetPlayerHealth(playerid,0.0);} }
  92.             PlayAudioStreamForPlayer(playerid,""); //EDIT: I forget the sound :D
  93.             for(new msg=0; msg<32; msg++){SendClientMessage(playerid, -1, " ");}
  94.             format(datainfo,sizeof(datainfo),"{FFFFFF}INFO: {C86400}beam been shot en {FFBC00}%s{FFFFFF}!.",textpart);
  95.             SendClientMessage(playerid,-1,datainfo);
  96.             PlayAudioStreamForPlayer(issuerid,""); //EDIT: I forget the soundo :D
  97.             for(new msg=0; msg<32; msg++){SendClientMessage(issuerid, -1, " ");}
  98.             format(datainfo,sizeof(datainfo),"{FFFFFF}INFO: {C86400}beam given him a shot in {FFBC00}%s {FFFFFF}your target{FFFFFF}!.",textpart);
  99.             SendClientMessage(issuerid,-1,datainfo);
  100.         }
  101.     } return true;
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement