Advertisement
RogerGomesCosta

Untitled

Jul 13th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  2. {
  3.     if(hittype != -1 && hittype == BULLET_HIT_TYPE_VEHICLE)
  4.     {
  5.         new Float:ModelPos[3];
  6.         GetVehicleModelInfo(GetVehicleModel(hitid), VEHICLE_MODEL_INFO_PETROLCAP, ModelPos[0], ModelPos[1], ModelPos[2]);
  7.         if(fX == ModelPos[0] && fY == ModelPos[1] && fZ == ModelPos[2])
  8.         {
  9.             SendClientMessage(playerid, COLOR_WHITE, "%s atirou no tanque do veículo %d", GetPlayerName(playerid), hitid);
  10.         }
  11.     }
  12.     return 1;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement