Raised This Month: $ Target: $400
 0% 

CS Gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-08-2010 , 03:23   Re: CS Gravity
Reply With Quote #1

Nah both of those didnt work
hornet is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-08-2010 , 04:35   Re: CS Gravity
Reply With Quote #2

Quote:
Originally Posted by hornet View Post
Nah both of those didnt work
It returns those huge values because you are using integers instead of floats.
Try this:
PHP Code:
new Float:xy;
get_user_gravity(id);
get_user_gravity(id);
client_print(idprint_chat"CORRECT %f FALSE %d"xy); 
You will see that CORRECT gravity will return 1.0 or 1.5 or 0.5 depending on the settings that have been made by you or other plugins.
Also you need to set the gravity using float values not integers.
PHP Code:
new Float:1.01;
set_user_gravity(idx);
set_user_gravity(idy); // Here you will get an error ;) 
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-08-2010 , 05:24   Re: CS Gravity
Reply With Quote #3

omg thanks mate you are a champion!!!
hornet 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 00:18.


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