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(Heightstr, 11);
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 ent, body;
get_user_aiming(id, ent, body, 9999);
new blockType = entity_get_int(ent, EV_INT_body);
if (blockType == EM_TRAMPOLINE)
{
client_print(id, print_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?