Raised This Month: $32 Target: $400
 8% 

Solved [req] plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killer999
Senior Member
Join Date: Dec 2013
Location: India
Old 02-23-2018 , 11:58   [req] plugin
Reply With Quote #1

i need a dhud plugin which creates multiple random messages every x seconds

for example : like in zombie darkness 4 there are serveral random dhud messages every x seconds which shows helpful tips for humans
__________________

Last edited by killer999; 02-23-2018 at 19:19.
killer999 is offline
Send a message via Skype™ to killer999
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 02-23-2018 , 12:56   Re: [req] plugin
Reply With Quote #2

Code:
#include <amxmodx>
#include <dhudmessage>

new const ADVERTISMENTS[][] =
{
    "message1",
    "message2",
    "message3",
    "message4",
    "message5",
    "message1000"
}

public plugin_init()
{    
    set_task(30.0,"start",1,_,_,"ab")
}

public start(id)
{
    set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255),-1.0, 0.10, 1, 0.1, 3.0, 0.1, 2.0, false)
    show_dhudmessage( id, "%s", ADVERTISMENTS[random(sizeof(ADVERTISMENTS))])
}

Last edited by raizo11; 02-23-2018 at 13:40.
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode