Raised This Month: $ Target: $400
 0% 

How to give long jump to a player?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-16-2009 , 08:18   Re: How to give long jump to a player?
Reply With Quote #2

PHP Code:

stock fm_set_user_longjump
(indexbool:longjump truebool:tempicon true) {
    if (
longjump == fm_get_user_longjump(index))
        return

    if (
longjump) {
        
engfunc(EngFunc_SetPhysicsKeyValueindex"slj""1")
        if (
tempicon) {
            static 
msgid_itempickup
            
if (!msgid_itempickup)
                
msgid_itempickup get_user_msgid("ItemPickup")

            
message_begin(MSG_ONEmsgid_itempickup_index)
            
write_string("item_longjump")
            
message_end()
        }
    }
    else
        
engfunc(EngFunc_SetPhysicsKeyValueindex"slj""0")

__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
 



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:28.


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