Advertisement
Guest User

Untitled

a guest
Dec 27th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <colors>
  3. public Plugin: myinfo=
  4. {
  5. name = "L4D2 Server a greeting",
  6. description = "Greeting to players a connected to server",
  7. author = "kaizer",
  8. version = "0.1",
  9. url = "don't have web site"
  10. }
  11.  
  12. public OnClientPutInServer(Client)
  13. {
  14. decl String:UserName[65];
  15.  
  16. if(IsClientConnected(Client) && !IsFakeClient(Client))
  17. {
  18. GetClientName(Client,UserName,sizeof(UserName));
  19. }
  20. public CreateTimer(Client){
  21.  
  22. CreateTimer(Float: 30.0,Timer:%s,any:CPrintToChat(Client),Flags=0);
  23. }
  24. }
  25. CPrintToChat(Client,"{olive}%s{default}Welcome To {olive}CyberWorld #1.",UserName);
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement