Raised This Month: $51 Target: $400
 12% 

Parachute 1.3 (KRoTaL)


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-12-2009 , 16:22   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #151

Set the cvar of the money to 0.
__________________
Arkshine is offline
agf
New Member
Join Date: Sep 2009
Old 09-13-2009 , 08:30   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #152

First let me say thanks for a super nice plugin.
(excuse my bad english)

I've got the parachute to work.
But I can not do so everybody gets it without buying it.
Know there are many who have inquired about it and I've read all 16 pages to find the answer. You say that i should write: parachute_cost "0"
But where should I write it.
have tried but can not figure it out.
If I understand correctly, it shall be in amx_parachute.sma
I've tried but it does not help.
here is the first in my amx_parachute.sma:

Parachute

Version: 1.3
Author: KRoTaL/JTP10181

0.1 Release
0.1.1 Players can't buy a parachute if they already own one
0.1.2 Release for AMX MOD X
0.1.3 Minor changes
0.1.4 Players lose their parachute if they die
0.1.5 Added amx_parachute cvar
0.1.6 Changed set_origin to movetype_follow (you won't see your own parachute)
0.1.7 Added amx_parachute <name> | admins with admin level a get a free parachute
0.1.8 JTP - Cleaned up code, fixed runtime error
1.0 JTP - Should be final version, made it work on basically any mod
1.1 JTP - Added Changes from AMX Version 0.1.8
Added say give_parachute and parachute_fallspeed cvar
Plays the release animation when you touch the ground
Added chat responder for automatic help
1.2 JTP - Added cvar to disable the detach animation
Redid animation code to improve organization
Force "walk" animation on players when falling
Change users gravity when falling to avoid choppiness
1.3 JTP - Upgraded to pCVARs

Commands:

say buy_parachute - buys a parachute (CStrike ONLY)
saw sell_parachute - sells your parachute (75% of the purchase price)
say give_parachute <nick, #userid or @team> - gives your parachute to the player

amx_parachute <nick, #userid or @team> - gives a player a free parachute (CStrike ONLY)
amx_parachute @all - gives everyone a free parachute (CStrike ONLY)

Press +use to slow down your fall.

Cvars:

sv_parachute "1" - 0: disables the plugin - 1: enables the plugin

parachute_cost "0" - cost of the parachute (CStrike ONLY)

parachute_payback "75" - how many percent of the parachute cost you get when you sell your parachute
(ie. (75/100) * 1000 = 750$)

parachute_fallspeed "100" - speed of the fall when you use the parachute


Setup (AMXX 1.x):

Install the amxx file.
Enable engine and cstrike (for cs only) in the amxx modules.ini
Put the parachute.mdl file in the modname/models/ folder

********************************************* **********************************/

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <fun>

new bool:has_parachute[33]
new para_ent[33]
new gCStrike = 0
new pDetach, pFallSpeed, pEnabled, pCost, pPayback

#define PARACHUTE_LEVEL ADMIN_USER

public plugin_init()
{
register_plugin("Parachute", "1.3", "KRoT@L/JTP10181")
pEnabled = register_cvar("sv_parachute", "1" )
pFallSpeed = register_cvar("parachute_fallspeed", "100")
pDetach = register_cvar("parachute_detach", "1")

if (cstrike_running()) gCStrike = true

if (gCStrike) {

pCost = register_cvar("parachute_cost", "0")
pPayback = register_cvar("parachute_payback", "75")

register_concmd("amx_parachute", "admin_give_parachute", PARACHUTE_LEVEL, "<nick, #userid or @team>" )
}


hope there are some who can help.
Many thanks in advance.
agf is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-13-2009 , 08:38   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #153

parachute_cost is a cvar. Put where you want in a config file.

amxx.cfg is a good place.
__________________
Arkshine is offline
agf
New Member
Join Date: Sep 2009
Old 09-13-2009 , 09:38   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #154

many thanks for your help and the quick reply.
have messed with it long without being able to get it to work.
But now it seems like it should.
Many thanks for your help Arkshine

agf is offline
LordKowen
Member
Join Date: Sep 2009
Location: Spain
Old 09-30-2009 , 15:55   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #155

Thanks for the plugin.

But I need the 1.1 version... Or a remake for this version without "Change users gravity when falling to avoid choppiness".

The reason is because in Zombie Plague mod, the Nemesis loose his gravity when use the parachute.

To fix, simply remove it? --> set_user_gravity(id, 1.0)

Sorry for my ignorance, and for my poor english.

Anyone can help me?
Thank you very much!!!

EDIT:

I found the solution on this post.

http://forums.alliedmods.net/showthr...ight=parachute

Last edited by LordKowen; 10-01-2009 at 07:41.
LordKowen is offline
williamNY
Member
Join Date: Nov 2009
Old 11-09-2009 , 15:45   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #156

i'm using GunGame mod, how do I make it so everyone spawns with one?
williamNY is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 11-09-2009 , 17:10   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #157

in amxx.cfg
parachute_cost "0"
`666 is offline
van_doorn
New Member
Join Date: Nov 2009
Old 11-26-2009 , 06:25   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #158

I have installed the parachute and it works. thanks for that! but now i want to get that beeping sound away. I saw in previous pages how to do it but it doesn't work. In wich folder should i put the .sma file and in which file and where should i put the code? i hope you can help!
van_doorn is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 11-27-2009 , 12:03   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #159

+karma
pwnage plugin!
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE
laziboi72 is offline
soolt
BANNED
Join Date: Aug 2009
Location: Lithuania
Old 11-27-2009 , 13:43   Re: Parachute 1.3 (KRoTaL)
Reply With Quote #160

don't working with war3ft undead race :/
soolt is offline
Send a message via Skype™ to soolt
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode