Raised This Month: $ Target: $400
 0% 

How to give long jump to a player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-16-2009 , 08:38   Re: How to give long jump to a player?
Reply With Quote #1

PHP Code:
stock bool:fm_get_user_longjump(index) {
    new 
value[2];
    
engfunc(EngFunc_GetPhysicsKeyValueindex"slj"value1);
    switch (
value[0]) {
        case 
'1': return true;
    }

    return 
false;

edit:
fm_set_user_longjump(id, true, false)
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 04-16-2009 , 13:40   Re: How to give long jump to a player?
Reply With Quote #2

Quote:
Originally Posted by ot_207 View Post
fm_set_user_longjump(id, true, false)
1 equals to true and 0 equals to false in Pawn("dumb" compiler). What he did is the same.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-16-2009 , 14:51   Re: How to give long jump to a player?
Reply With Quote #3

Why don't you want to use give_item ?
Result is the same and it's more efficient.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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