Guest User

Emmanuel U/Airstrike At Waypoint

a guest
Nov 2nd, 2012
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. Void Function
  2.  
  3.  
  4. void xmc_airstrike(void)
  5. {
  6.     if(DOES_BLIP_EXIST(GET_FIRST_BLIP_INFO_ID(BLIP_WAYPOINT))){
  7.     Vector3 pos;
  8.     float z;
  9.     GET_BLIP_COORDS(GET_FIRST_BLIP_INFO_ID(BLIP_WAYPOINT),&pos);
  10.     GET_GROUND_Z_FOR_3D_COORD(pos.x,pos.y,pos.z,&z);
  11.     xmccreate_big_explosion(pos.x,pos.y,z);//adding 10.0f isn't tested
  12.     xmcPrint("Launching Airstrike!");
  13.     }
  14.     else xmcPrint("You need to set a waypoint!");
  15. }
  16.  
  17.  
  18.  
  19. Print Definition
  20.  
  21. #define xmcPrint(x) PRINT_STRING_WITH_LITERAL_STRING("string",x,2500,true)
Advertisement
Add Comment
Please, Sign In to add comment