Raised This Month: $ Target: $400
 0% 

set_user_maxspeed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ady20
Member
Join Date: Sep 2012
Old 10-30-2012 , 14:09   set_user_maxspeed
Reply With Quote #1

I have a plugin "human classes". How can I add to class number 5 500 speed?
I tryed with set_user_maxspeed 500 but it won't work.
Here is the .sma without any try to add speed.

I tryed adding a new cvar
"CvarCyborgSpeed = register_cvar("race_cyborg_speed","500"); //| How much speed has Cyborg Default: 500 |//"

and addinglike this:
"fm_set_user_maxspeed(id, get_pcvar_num(CvarCyborgSpeed));"

It gives me compilation error: warning 213: tag mismatch
Attached Files
File Type: sma Get Plugin or Get Source (clase_human.sma - 513 views - 13.0 KB)

Last edited by Ady20; 10-30-2012 at 14:18.
Ady20 is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 10-30-2012 , 14:25   Re: set_user_maxspeed
Reply With Quote #2

You should hook every time that client speed changes... Take a look to zp 4.3 patched, search for "Ham_Player_ResetMaxSpeed".
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Ady20
Member
Join Date: Sep 2012
Old 10-30-2012 , 16:49   Re: set_user_maxspeed
Reply With Quote #3

Thanks for the tip. I am still learming
Ady20 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:37.


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