Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define filterscript
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Parachute Jumping by DeWilX -- Loaded");
- print("--------------------------------------\n");
- return 1;
- }
- new Float:x,Float:y,Float:z;
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/parachutejump", true)==0)
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Parachute jumping","Do you want jump with parachute?","Ok","No");
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response)
- {
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z+1000);
- GivePlayerWeapon(playerid,46,1);
- }
- if(!response) return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement