Raised This Month: $ Target: $400
 0% 

How to give long jump to a player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-16-2009 , 08:16   How to give long jump to a player?
Reply With Quote #1

How to give long jump to a player?
without the item long jump
thanks in advance
__________________
alan_el_more is offline
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
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-16-2009 , 08:23   Re: How to give long jump to a player?
Reply With Quote #3

shows a flash showing the item longjump?
__________________
alan_el_more is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-16-2009 , 08:26   Re: How to give long jump to a player?
Reply With Quote #4

Quote:
Originally Posted by alan_el_more View Post
shows a flash showing the item longjump?
Flash? You mean the Statusicon?
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-16-2009 , 08:27   Re: How to give long jump to a player?
Reply With Quote #5

Quote:
Originally Posted by ot_207 View Post
Flash? You mean the Statusicon?
yes

@hleV
without the item long jump
__________________
alan_el_more is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-16-2009 , 08:26   Re: How to give long jump to a player?
Reply With Quote #6

You could try this:
Code:
#include <fun>   public Function(Client) {         // Still not sure if it's "item_longjump"         give_item(Client, "item_longjump"); }
__________________
hleV is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-16-2009 , 08:28   Re: How to give long jump to a player?
Reply With Quote #7

Quote:
Originally Posted by hleV View Post
You could try this:
Code:
#include <fun>   public Function(Client) {         // Still not sure if it's "item_longjump"         give_item(Client, "item_longjump"); }
Quote:
without the item long jump
Quote:
Originally Posted by alan_el_more View Post
yes
Send the statusicon message after setting long jump.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Old 04-16-2009, 08:29
xPaw
This message has been deleted by xPaw.
Old 04-16-2009, 08:30
ot_207
This message has been deleted by ot_207. Reason: Nvm -_-
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-16-2009 , 08:36   Re: How to give long jump to a player?
Reply With Quote #10

I put this:
PHP Code:
fm_set_user_longjump(id10
For that do not appear the statusicon but has an error.

And I need the native fm_get_user_longjump.
__________________
alan_el_more 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 02:28.


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