Welcome msg plugin
Explain what the problem you faced....
He who fails to plan is planning to fail
Yes same problem the hud message never appears.
- SexY DeviL CJ
- Mod Tester
- Posts: 73
- Joined: 6 years ago
- Contact:
Check your server console it must throw some error if your plugin is not showing up in server check your logs in your panel
......Devil Was Here......
I check it befor plugin dont have any error in consolSexY DeviL CJ wrote: ↑5 years ago Check your server console it must throw some error if your plugin is not showing up in server check your logs in your panel
- #include <amxmodx>
- #include <hamsandwich>
- #define PLUGIN "Welcome Msg"
- #define VERSION "1.0"
- #define AUTHOR "GmTx"
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
- }
- public Player_Spawn(id)
- {
- set_task(0.5, "ShowMsg", id, _, _, "a", 20)
- }
- public ShowMsg(id)
- {
- new name[32]
- get_user_name(id, name, 31)
- set_hudmessage(0, 255, 0, -1.0, 0.35, 0, 1.0, 0.5, 0.1, 0.2)
- show_hudmessage(id, "Welcome %s to zombie escape mod^nEnjoy with us GL have fun", name)
- }
- public client_disconnected(id)
- {
- remove_task(id)
- }
He who fails to plan is planning to fail
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 1 guest