AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Need Small Plugin (https://forums.alliedmods.net/showthread.php?t=290309)

shehzad1234 11-10-2016 09:47

[REQ] Need Small Plugin
 
Hi All

i need this plugin all new round i want this message on my screen all new round start i want this message to display.

[hindi]
Jab bhi new round start ho to mujhe yeh message aana chaiye jo Screen Shot me hai.


http://i64.tinypic.com/24cfij7.jpg

Sorry for My Bad English

Napoleon_be 11-10-2016 10:49

Re: [REQ] Need Small Plugin
 
this should do

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "DisplayMessage"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("RoundStart"2"1=Round_Start")
}

public 
RoundStart() {
    
ColorChat(0NORMAL"[PREFIX]^4 GREEN TEXT HERE,^1 NORMAL HERE^3 TEAM COLOR HERE^1 NORMAL HERE AGAIN")



shehzad1234 11-10-2016 13:10

Re: [REQ] Need Small Plugin
 
Quote:

Originally Posted by Napoleon_be (Post 2469173)
this should do

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "DisplayMessage"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("RoundStart"2"1=Round_Start")
}

public 
RoundStart() {
    
ColorChat(0NORMAL"[PREFIX]^4 GREEN TEXT HERE,^1 NORMAL HERE^3 TEAM COLOR HERE^1 NORMAL HERE AGAIN")



Thanks !! bro its working :) thanks yaar

Bro are u using Facebook?? add me click here

Amine Belokda 11-11-2016 13:49

Re: [REQ] Need Small Plugin
 
using this
PHP Code:

#include <amxmodx>
#include <ColorChat>

#define PLUGIN "Round Start Message"
#define VERSION "1.0"
#define AUTHOR "Amine Belokda"

new const g_prefix[] = "[Round-Start]"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("NewRound"2"1=Round_Start")
}

public 
NewRound()
{
    
ColorChat(idGREEN,"%s ^1You Message Here"g_prefix)
    
// to add other message copie this // Code: ColorChat(id, GREEN,"%s ^1You Message Here", g_prefix)



OciXCrom 11-11-2016 14:02

Re: [REQ] Need Small Plugin
 
That won't work yaar.

shehzad1234 11-11-2016 14:19

Re: [REQ] Need Small Plugin
 
Quote:

Originally Posted by Amine Belokda (Post 2469380)
using this
PHP Code:

#include <amxmodx>
#include <ColorChat>

#define PLUGIN "Round Start Message"
#define VERSION "1.0"
#define AUTHOR "Amine Belokda"

new const g_prefix[] = "[Round-Start]"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("NewRound"2"1=Round_Start")
}

public 
NewRound()
{
    
ColorChat(idGREEN,"%s ^1You Message Here"g_prefix)
    
// to add other message copie this // Code: ColorChat(id, GREEN,"%s ^1You Message Here", g_prefix)



Thnx yaar..

OciXCrom 11-11-2016 17:07

Re: [REQ] Need Small Plugin
 
That won't even compile yaar.

tousif 11-11-2016 23:43

Re: [REQ] Need Small Plugin
 
Quote:

Originally Posted by OciXCrom (Post 2469430)
That won't even compile yaar.

yes yaaar :p

PHP Code:

 ColorChat(idGREEN,"%s ^1You Message Here"g_prefix

->
PHP Code:

 ColorChat(0GREEN,"%s ^1You Message Here"g_prefix


Napoleon_be 11-13-2016 08:22

Re: [REQ] Need Small Plugin
 
rofl why even bother posting the exact same code just with an array holding the prefix...

I can get much more advanced in prefixes if you want to though


All times are GMT -4. The time now is 05:45.

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