Raised This Month: $32 Target: $400
 8% 

Move the message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GaBy96
Member
Join Date: Oct 2012
Location: Spain
Old 10-30-2020 , 12:15   Move the message
Reply With Quote #1

Hello i have this plugin:
PHP Code:
#include <amxmodx>

#define PLUGIN "Welcome Messages and Rules with CZ-Style Tutor Messages"
#define VERSION "0.3"

#define TUTORIAL 1001
#define TASK_TUT 1111

enum
{
    
RED 1,
    
BLUE,
    
YELLOW,
    
GREEN
}

new const 
g_TutorPrecache[][] =
{
    
"gfx/career/icon_!.tga",
    
"gfx/career/icon_!-bigger.tga",
    
"gfx/career/icon_i.tga",
    
"gfx/career/icon_i-bigger.tga",
    
"gfx/career/icon_skulls.tga",
    
"gfx/career/round_corner_ne.tga",
    
"gfx/career/round_corner_nw.tga",
    
"gfx/career/round_corner_se.tga",
    
"gfx/career/round_corner_sw.tga",
    
"resource/TutorScheme.res",
    
"resource/UI/TutorTextWindow.res"
}

new 
g_MsgTutor;
new 
g_MsgTutClose;

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSION"R14170")
    
    
register_clcmd("say /rules""showRules");
    
register_clcmd("say_team /rules""showRules");
    
    
g_MsgTutor get_user_msgid("TutorText")
    
g_MsgTutClose get_user_msgid("TutorClose")
}

public 
plugin_precache()
{    
    new 
i;
    
    for(
0sizeof g_TutorPrecachei++)
    {
        
precache_generic(g_TutorPrecache[i])
    }
}

public 
client_connect(id)
{
    
set_task(3.0"welcomeMessage"id)
}

public 
welcomeMessage(id)
{
    new 
Text[100];
    new 
name[42];
    
get_user_name(idname32)
    
    
formatex(Text191"Welcome, %s!^nHave fun playing here!^nType /rules to see the rules."name)
    
MakeTutor(idTextGREEN10.0)
}

public 
showRules(id)
{
    new 
Text[100];
    
    
formatex(Text191"Rules:^n^n1. Rule1^n2. Rule2^n3. Rule3^n4. Rule4^n5. Rule5^n^nFollow these rules, please!")
    
MakeTutor(idTextYELLOW15.0)
}

MakeTutor(idText[], ColorFloat:Time 0.0
{
    if(
is_user_connected(id))
    {
        
message_begin(MSG_ONE_UNRELIABLEg_MsgTutor_id)
        
write_string(Text)
        
write_byte(0)
        
write_short(0)
        
write_short(0)
        
write_short(1<<Color)
        
message_end()
    }
    
    if(
Time != 0.0) {
        
        if( 
task_exists(id TASK_TUT ))
        {
            
remove_task(id TASK_TUT)
        }
        
        
set_task(Time,"RemoveTutor",id TASK_TUT)
    }
}

public 
RemoveTutor(taskID
{
    new 
id taskID TASK_TUT
    message_begin
(MSG_ALL,g_MsgTutClose,_,id)
    
message_end()

and I would like the messages to appear where I show you in the next picture:

__________________

We have over 400 skins on weapons and 5 types for hands!
Costumes for players!
New style for Top15 and stats!
Kill marks, molotov!
And many more are waiting for you to play!

Last edited by GaBy96; 10-30-2020 at 12:53.
GaBy96 is offline
Send a message via Skype™ to GaBy96
JocAnis
Veteran Member
Join Date: Jun 2010
Old 10-30-2020 , 13:07   Re: Move the message
Reply With Quote #2

Tutor messages cant change positions (except client side)
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
r0ma
Senior Member
Join Date: Apr 2012
Location: Great Tomb of Nazarick
Old 10-30-2020 , 13:09   Re: Move the message
Reply With Quote #3

it's not possible
__________________
Discord:FluffyDeveloper#4753
Github: https://github.com/francoromaniello
AMX-ES: https://amxmodx-es.com/r0ma'
r0ma is offline
Send a message via MSN to r0ma
GaBy96
Member
Join Date: Oct 2012
Location: Spain
Old 10-30-2020 , 14:41   Re: Move the message
Reply With Quote #4

ok thanks
__________________

We have over 400 skins on weapons and 5 types for hands!
Costumes for players!
New style for Top15 and stats!
Kill marks, molotov!
And many more are waiting for you to play!
GaBy96 is offline
Send a message via Skype™ to GaBy96
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 21:57.


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