Welcome msg plugin

Unpaid Requests, Public Plugins
Post Reply
User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#11

Post by Raheem » 5 years ago

Explain what the problem you faced....
He who fails to plan is planning to fail

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#12

Post by sPe3doN » 5 years ago

Raheem wrote: 5 years ago Explain what the problem you faced....
not show the msg
Image

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#13

Post by Spir0x » 5 years ago

Yes same problem the hud message never appears.

User avatar
SexY DeviL CJ
Mod Tester
Mod Tester
Posts: 73
Joined: 6 years ago
Contact:

#14

Post by SexY DeviL CJ » 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
......Devil Was Here......

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#15

Post by sPe3doN » 5 years ago

SexY 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
I check it befor plugin dont have any error in consol
Image

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#16

Post by sPe3doN » 5 years ago

can't fixed ?
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#17

Post by Raheem » 5 years ago

  1. #include <amxmodx>
  2. #include <hamsandwich>
  3.  
  4. #define PLUGIN "Welcome Msg"
  5. #define VERSION "1.0"
  6. #define AUTHOR "GmTx"
  7.  
  8. public plugin_init()
  9. {
  10.     register_plugin(PLUGIN, VERSION, AUTHOR)
  11.    
  12.     RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
  13. }
  14.  
  15. public Player_Spawn(id)
  16. {
  17.     set_task(0.5, "ShowMsg", id, _, _, "a", 20)
  18. }
  19.  
  20. public ShowMsg(id)
  21. {
  22.     new name[32]
  23.     get_user_name(id, name, 31)
  24.    
  25.     set_hudmessage(0, 255, 0, -1.0, 0.35, 0, 1.0, 0.5, 0.1, 0.2)
  26.     show_hudmessage(id, "Welcome %s to zombie escape mod^nEnjoy with us GL have fun", name)
  27. }
  28.  
  29. public client_disconnected(id)
  30. {
  31.     remove_task(id)
  32. }
He who fails to plan is planning to fail

Post Reply

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

Register

Sign in

Who is online

Users browsing this forum: No registered users and 1 guest