Raised This Month: $ Target: $400
 0% 

give speed, grav, hp and etc.. fakemeta


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 05-18-2009 , 10:10   give speed, grav, hp and etc.. fakemeta
Reply With Quote #1

What i can give to teh players speed, gravyti, health ? and all skill's ? ex: longjump
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-18-2009 , 10:16   Re: give speed, grav, hp and etc.. fakemeta
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=inc&id=7
__________________
xPaw is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-18-2009 , 10:17   Re: give speed, grav, hp and etc.. fakemeta
Reply With Quote #3

Dont use fakemeta use fun. Longjump is not a "Give" It's a longer stock, search for it It's by Fry i think
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.

Last edited by TitANious; 05-18-2009 at 10:19.
TitANious is offline
Send a message via MSN to TitANious
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-18-2009 , 10:20   Re: give speed, grav, hp and etc.. fakemeta
Reply With Quote #4

PHP Code:
// fakemeta_util.inc

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")
}

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

    return 
false

__________________
xPaw is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-18-2009 , 10:21   Re: give speed, grav, hp and etc.. fakemeta
Reply With Quote #5

Look like it was anyway
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 05-18-2009 , 11:44   Re: give speed, grav, hp and etc.. fakemeta
Reply With Quote #6

PHP Code:
public ShowZmenu(id) { 
if(
get_user_team(id) == 1) { 
new 
menu menu_create("\rZombie Classes:""menu_handler"); 
menu_additem(menu"\wHunter - Leap""1"0); 
menu_additem(menu"\wSmoker - Drag""2"0); 
menu_additem(menu"\wBoomer - Explode""3"0); 
menu_additem(menu"\wTank - HP""4"0); 
menu_setprop(menuMPROP_EXITMEXIT_ALL); 
menu_display(idmenu0); 


public 
menu_handler(idmenuitem)
{
if( 
item == MENU_EXIT )
{
menu_destroy(menu);
return 
PLUGIN_HANDLED;
}
new 
data[6], iName[64];
new 
accesscallback;
menu_item_getinfo(menuitemaccessdata,5iName63callback)
new 
key str_to_num(data);
switch(
key)
{
case 
1:
{
client_printcolor(0"/gYou Now are /ya /ctrHunter/y!");
}
case 
2:
{
client_printcolor(0"/gYou Now are /ya /ctrSmoker/y!");
}
case 
3:
{
client_printcolor(0"/gYou Now are /ya /ctrBoomer/y!");
}
case 
4:
{
client_printcolor(0"/gYou Now are /ya /ctrTank/y!");
}
}
menu_destroy(menu);
return 
PLUGIN_HANDLED;

I can give all the classes in skill? Please give exmpl.
Tank - Have Hp
Boomer - Have Explode
Smoker - Can drag players
Hunter - Have Leap
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-18-2009 , 11:58   Re: give speed, grav, hp and etc.. fakemeta
Reply With Quote #7

PHP Code:
set_user_healthid255 );
give_itemid"weapon_hegrenade" );
// super shit code
fm_set_user_longjumpidtruetrue ); 
__________________
xPaw is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 05-18-2009 , 12:07   Re: give speed, grav, hp and etc.. fakemeta
Reply With Quote #8

what means true ?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-18-2009 , 12:12   Re: give speed, grav, hp and etc.. fakemeta
Reply With Quote #9

Should work.. USE INDENTENTIONS! I mean tabs..
This should work:
Code:
#include <amxmodx> #include <fakemeta> case 1: {         client_printcolor(0, "/gYou Now are /ya /ctrHunter/y!");         fm_set_user_longjump(id, 1); }
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.

Last edited by TitANious; 05-18-2009 at 12:15.
TitANious is offline
Send a message via MSN to TitANious
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 05-18-2009 , 13:26   Re: give speed, grav, hp and etc.. fakemeta
Reply With Quote #10

Quote:
Originally Posted by TitANious View Post
Code:
fm_set_user_longjump(id, 1);
You should do:
Code:
fm_set_user_longjump(id) // or fm_set_user_longjump(id, true)

With your code you get a tag mismatch in the BOOL:longjump

Quote:
Originally Posted by joaquimandrade
~Ice*shOt how old are you?
And here comes the stop coding advice
__________________
IneedHelp 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 01:27.


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