Advertisement
Guest User

ConnectMessege.sp

a guest
Jul 22nd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #include <sourcemod>
  2.  
  3. new Handle:h_connectmsg = INVALID_HANDLE;
  4.  
  5. public Plugin:myinfo =
  6. {
  7. name = "Connect MSG",
  8. author = "ExTacY",
  9. description = "Provides Info of the player when he joins",
  10. version = "1.0",
  11. url = ""
  12. };
  13.  
  14. public OnPluginStart()
  15. {
  16. h_connectmsg = CreateConVar("sm_connectmsg", "1", "Shows a connect message in the chat once a player joins.", FCVAR_NOTIFY | FCVAR_DONTRECORD);
  17. }
  18.  
  19. public OnClientPutInServer(client)
  20. {
  21. new Connect = GetConVarInt(h_connectmsg);
  22. if(Connect == 1)
  23. {
  24. new String:name[99],
  25.  
  26. GetClientName(client, name, sizeof(name));
  27.  
  28. }
  29.  
  30. PrintToChatAll(" \x04[CONNECT]\x03 %s (%s) Welcon to our server!
  31.  
  32. }
  33.  
  34. CloseHandle(h_connectmsg);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement