Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
- {
- if(hittype != -1 && hittype == BULLET_HIT_TYPE_VEHICLE)
- {
- new Float:ModelPos[3];
- GetVehicleModelInfo(GetVehicleModel(hitid), VEHICLE_MODEL_INFO_PETROLCAP, ModelPos[0], ModelPos[1], ModelPos[2]);
- if(fX == ModelPos[0] && fY == ModelPos[1] && fZ == ModelPos[2])
- {
- SendClientMessage(playerid, COLOR_WHITE, "%s atirou no tanque do veículo %d", GetPlayerName(playerid), hitid);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement