Raised This Month: $ Target: $400
 0% 

Gravity --'


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Monster Truck
Member
Join Date: Jan 2012
Location: France
Old 01-02-2014 , 12:05   Re: Gravity --'
Reply With Quote #1

In first page i gave the whole code, and the think i want to add is handling another plugin, should i paste it here ?
Monster Truck is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 01-02-2014 , 12:09   Re: Gravity --'
Reply With Quote #2

What do you mean 'handling another plugin' ?
__________________
youtube:
@holla16
11922911 is offline
Monster Truck
Member
Join Date: Jan 2012
Location: France
Old 01-02-2014 , 12:16   Re: Gravity --'
Reply With Quote #3

There is a plugin that opens a menu that allows the last terror to make a duel against all cts (1v1) , and i want that during his duels, gravity and speed take normal values. The plugin that i pasted here gives speed and gravity to terror (if they chose the right class), and i want it to take normal value in the duels. This is what i mean by 'handling"
Monster Truck is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 01-02-2014 , 12:38   Re: Gravity --'
Reply With Quote #4

Quote:
Originally Posted by Monster Truck View Post
There is a plugin that opens a menu that allows the last terror to make a duel against all cts (1v1) , and i want that during his duels, gravity and speed take normal values. The plugin that i pasted here gives speed and gravity to terror (if they chose the right class), and i want it to take normal value in the duels. This is what i mean by 'handling"
Yes, that is what I need to know, now I'm probably understand what you want to do.

So in the case you can do:
Check when there is only last T, set him to normal gravity and speed, and don't let him use the menu (which gives speed and gravity), or keep the menu but don't give him speed and gravity.
__________________
youtube:
@holla16

Last edited by 11922911; 01-02-2014 at 14:47.
11922911 is offline
Monster Truck
Member
Join Date: Jan 2012
Location: France
Old 01-02-2014 , 12:55   Re: Gravity --'
Reply With Quote #5

This is what i'm trying to do, the speed work correctly but it won't work for gravity i don't know why
Maybe i should past le duel plugin here too ? For some further help ?
Monster Truck is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 01-02-2014 , 14:08   Re: Gravity --'
Reply With Quote #6

Try again this, I've fixed a small mistake

Even though using task is not the good way(because task has a delay, not real time), but it would be a more easier way for you, with this, you can ignore the menu check (like what I've said in #24).

Better way should be check the last T in specific events like spawn/death/changeTeam...etc (any possible changes cause a player become the last player), that's what I thought.

About the speed, there is a correct way to change the player maxspeed, look http://forums.alliedmods.net/showthr...t=94331&page=2
__________________
youtube:
@holla16

Last edited by 11922911; 01-02-2014 at 15:00.
11922911 is offline
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 10:09.


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