Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Sublime AMXX Editor v2.2 */
- #include <amxmodx>
- #include <csstats>
- #include <dhudmessage>
- new const
- PLUGIN[] = "Welcome",
- VERSION[] = "1.0",
- AUTHOR[] = "Filip."
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- }
- public client_putinserver(playerid) {
- set_task(10.0, "info", playerid)
- set_task(15.0, "addfav", playerid)
- }
- public info(playerid) {
- new stats[8], body[8]
- set_dhudmessage(0, 255, 0, 0.10, 0.24, 0, 7.0, 10.0, 0.1, 0.1 )
- 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())
- }
- public addfav(playerid) {
- set_dhudmessage(176, 89, 247, 0.15, 0.70, 0, 6.0, 23.0, 0.1, 0.25)
- show_dhudmessage(playerid, "%s^nDon't forget to add us to your favourites.", GetName(0))
- }
- stock GetName(playerid) {
- new name[50]
- get_user_name(playerid, name, 50)
- return name
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement