Advertisement
Badyx

[FS] Disparo vehicleX

Jan 17th, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.00 KB | None | 0 0
  1. /*
  2.     [FS] Disparo vehicleX
  3.    
  4.     Imagenes:
  5.    
  6.     [img]http://imagizer.imageshack.us/v2/800x600q90/802/8ped.png[/img]
  7.     [img]http://imagizer.imageshack.us/v2/800x600q90/823/24ui.png[/img]
  8.     [img]http://imagizer.imageshack.us/v2/800x600q90/577/2l7a.png[/img]
  9.     [img]http://imagizer.imageshack.us/v2/800x600q90/30/yfgp.bmp[/img]
  10.     [img]http://imagizer.imageshack.us/v2/800x600q90/545/e2w4.png[/img]
  11.    
  12. */
  13.  
  14.  
  15. #include <a_samp>
  16. #include <zcmd>
  17. #include <sscanf2>
  18. #include <Colores>
  19.  
  20. #if defined FILTERSCRIPT
  21.  
  22. #else
  23.  
  24. main(){}
  25.  
  26. #endif
  27.  
  28. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  29. {
  30.     new string[200];
  31.     switch(hittype)
  32.     {
  33.         case    BULLET_HIT_TYPE_VEHICLE:
  34.         {
  35.             format(string, sizeof(string), "Disparaste al vehículo con id %d.", hitid);
  36.             SendClientMessage(playerid, -1, string);
  37.             new Float:VidaCoche;
  38.             GetVehicleHealth(hitid, VidaCoche);
  39.             SetVehicleHealth(hitid, VidaCoche-100);
  40.         }
  41.     }
  42.     return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement