Advertisement
DeWilX

Jump Parachute[0.1]

Apr 25th, 2011
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.87 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define filterscript
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.         print("\n--------------------------------------");
  8.         print("Parachute Jumping by DeWilX -- Loaded");
  9.         print("--------------------------------------\n");
  10.         return 1;
  11. }
  12.  
  13. new Float:x,Float:y,Float:z;
  14.  
  15. public OnPlayerCommandText(playerid, cmdtext[])
  16. {
  17. if(strcmp(cmdtext, "/parachutejump", true)==0)
  18. {
  19.     ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Parachute jumping","Do you want jump with parachute?","Ok","No");
  20. }
  21. return 1;
  22. }
  23.  
  24. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  25. {
  26.         if(dialogid == 1)
  27.         {
  28.         if(response)
  29.         {
  30.         GetPlayerPos(playerid, x, y, z);
  31.         SetPlayerPos(playerid, x, y, z+1000);
  32.         GivePlayerWeapon(playerid,46,1);
  33.         }
  34.         if(!response) return 1;
  35.         }
  36.         return 1;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement