Raised This Month: $ Target: $400
 0% 

Change value through a messagemode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
acetatomil
New Member
Join Date: Aug 2013
Old 03-09-2014 , 16:41   Change value through a messagemode
Reply With Quote #1

Hey guys,

Look, I'm editing the BlockMaker necro and I want to add an option using messagemode you can change the height to trampoline .. I know that there are other plugins that have that option, I just want to integrate mine..

I did the hook:

in init:

PHP Code:
register_clcmd("SignIn_Height""fnc_ingHeight"); 
in fuction:

PHP Code:
 client_cmd(id"messagemode SignIn_Height"
create fuction (public)

PHP Code:
public fnc_ingHeight(id)
{
    new 
Hieghtstr[12];
    
read_args(Heightstr11);
    
remove_quotes(Heightstr);
    
trim(Heightstr);

And this is my role to point to block and change the height:

PHP Code:
toggleHeightAiming(id)
{
    if (
get_user_flags(id) & BM_ADMIN_LEVEL)
    {
        new 
entbody;
        
get_user_aiming(identbody9999);
        new 
blockType entity_get_int(entEV_INT_body);

        if (
blockType == EM_TRAMPOLINE)
        {
            
client_print(idprint_chat"Select the new value:");
            
client_cmd(id"messagemode SignIn_Height");
        }
    }

Now I say ... What must I do to be able to change the height?
acetatomil 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 06:04.


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