Advertisement
Filiq_

welcome 1.0

Oct 25th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. /* Sublime AMXX Editor v2.2 */
  2.  
  3. #include <amxmodx>
  4. #include <csstats>
  5. #include <dhudmessage>
  6.  
  7. new const
  8. PLUGIN[] = "Welcome",
  9. VERSION[] = "1.0",
  10. AUTHOR[] = "Filip."
  11.  
  12. public plugin_init() {
  13. register_plugin(PLUGIN, VERSION, AUTHOR)
  14. }
  15.  
  16. public client_putinserver(playerid) {
  17. set_task(10.0, "info", playerid)
  18. set_task(15.0, "addfav", playerid)
  19. }
  20.  
  21. public info(playerid) {
  22. new stats[8], body[8]
  23.  
  24. set_dhudmessage(0, 255, 0, 0.10, 0.24, 0, 7.0, 10.0, 0.1, 0.1 )
  25. show_dhudmessage(playerid, "Welcome, %s^nWe hope you enjoy you`ll stay here!^n^n%s^n^nYou rank is %d from %d", GetName(playerid), GetName(0), get_user_stats (playerid, stats, body), get_statsnum())
  26. }
  27.  
  28. public addfav(playerid) {
  29. set_dhudmessage(176, 89, 247, 0.15, 0.70, 0, 6.0, 23.0, 0.1, 0.25)
  30. show_dhudmessage(playerid, "%s^nDon't forget to add us to your favourites.", GetName(0))
  31. }
  32.  
  33. stock GetName(playerid) {
  34. new name[50]
  35. get_user_name(playerid, name, 50)
  36.  
  37. return name
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement