zGabriel_Aguiar

[FS]HeadShot

Jan 22nd, 2022 (edited)
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     //Caso queira adicionar novas armas e so copiar um do IF'S ate o final e colar em baixo de um IF, e mudar o "weaponid ==" para o ID da arma que deseja.
  2.     //Exemplo:
  3.    
  4.     //copiar daqui
  5.     if(issuerid != INVALID_PLAYER_ID && weaponid == 24 && bodypart == 9)//DESERT
  6.     {
  7.         GameTextForPlayer(playerid, "~r~~h~HEADSHOT", 5000, 6);
  8.  
  9.         GameTextForPlayer(issuerid, "~g~~h~HEADSHOT", 5000, 6);
  10.  
  11.         SetPlayerHealth(playerid, 0.0);
  12.     } //ate aqui
  13.    
  14.     /*e colar assim
  15.     if(issuerid != INVALID_PLAYER_ID && weaponid == 24 && bodypart == 9)
  16.     {
  17.         GameTextForPlayer(playerid, "~r~~h~HEADSHOT", 5000, 6);
  18.  
  19.         GameTextForPlayer(issuerid, "~g~~h~HEADSHOT", 5000, 6);
  20.  
  21.         SetPlayerHealth(playerid, 0.0);
  22.     }*/
  23.  
  24.     if(issuerid != INVALID_PLAYER_ID && weaponid == 30 && bodypart == 9)//AK 47
  25.     {
  26.         GameTextForPlayer(playerid, "~r~~h~HEADSHOT", 5000, 6);
  27.  
  28.         GameTextForPlayer(issuerid, "~g~~h~HEADSHOT", 5000, 6);
  29.  
  30.         SetPlayerHealth(playerid, 0.0);
  31.     }
  32.  
  33.     if(issuerid != INVALID_PLAYER_ID && weaponid == 31 && bodypart == 9) //M4
  34.     {
  35.         GameTextForPlayer(playerid, "~r~~h~HEADSHOT", 5000, 6);
  36.  
  37.         GameTextForPlayer(issuerid, "~g~~h~HEADSHOT", 5000, 6);
  38.  
  39.         SetPlayerHealth(playerid, 0.0);
  40.     }
  41.    
  42.     if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9) //M4
  43.     {
  44.         GameTextForPlayer(playerid, "~r~~h~HEADSHOT", 5000, 6);
  45.  
  46.         GameTextForPlayer(issuerid, "~g~~h~HEADSHOT", 5000, 6);
  47.  
  48.         SetPlayerHealth(playerid, 0.0);
  49.     }
RAW Paste Data Copied