Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- [FS] Disparo vehicleX
- Imagenes:
- [img]http://imagizer.imageshack.us/v2/800x600q90/802/8ped.png[/img]
- [img]http://imagizer.imageshack.us/v2/800x600q90/823/24ui.png[/img]
- [img]http://imagizer.imageshack.us/v2/800x600q90/577/2l7a.png[/img]
- [img]http://imagizer.imageshack.us/v2/800x600q90/30/yfgp.bmp[/img]
- [img]http://imagizer.imageshack.us/v2/800x600q90/545/e2w4.png[/img]
- */
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #include <Colores>
- #if defined FILTERSCRIPT
- #else
- main(){}
- #endif
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- new string[200];
- switch(hittype)
- {
- case BULLET_HIT_TYPE_VEHICLE:
- {
- format(string, sizeof(string), "Disparaste al vehículo con id %d.", hitid);
- SendClientMessage(playerid, -1, string);
- new Float:VidaCoche;
- GetVehicleHealth(hitid, VidaCoche);
- SetVehicleHealth(hitid, VidaCoche-100);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement