AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change value through a messagemode (https://forums.alliedmods.net/showthread.php?t=236700)

acetatomil 03-09-2014 16:41

Change value through a messagemode
 
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?


All times are GMT -4. The time now is 06:04.

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