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

Multiple Game Names


Post New Thread Reply   
 
Thread Tools Display Modes
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-03-2018 , 07:45   Re: [ReAPI] Multiple Game Names
Reply With Quote #41

Quote:
Originally Posted by Sugisaki View Post
for this plugin to take effect you should use reunion == dproto
disapproved for me
You don't need dproto/reunion to change game name.
__________________
klippy is offline
Hey
Member
Join Date: Dec 2017
Old 02-03-2018 , 12:33   Re: [ReAPI] Multiple Game Names
Reply With Quote #42

uhhh easy and simple :
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define GName "Counter-Strike 1.7"

public plugin_init()
{
    
register_plugin("Change Game Name""0.1""iTzMeHey");
    
    
register_forwardFM_GetGameDescription"GameDesc" );
}
public 
GameDesc()
{
    
forward_return(FMV_STRINGGName);
    return 
FMRES_SUPERCEDE

P.S: you can just add a simple read from file function and then display more names.

Last edited by Hey; 02-03-2018 at 12:50.
Hey is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 02-03-2018 , 14:07   Re: [ReAPI] Multiple Game Names
Reply With Quote #43

Quote:
Originally Posted by Hey View Post
uhhh easy and simple :
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define GName "Counter-Strike 1.7"

public plugin_init()
{
    
register_plugin("Change Game Name""0.1""iTzMeHey");
    
    
register_forwardFM_GetGameDescription"GameDesc" );
}
public 
GameDesc()
{
    
forward_return(FMV_STRINGGName);
    return 
FMRES_SUPERCEDE

P.S: you can just add a simple read from file function and then display more names.
i know this by fakemeta, just i dont have time to test if would by fake meta has more game names ;)
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Old 02-24-2018, 03:08
xygilo
This message has been deleted by asherkin. Reason: Spam
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 03-05-2018 , 12:47   Re: [ReAPI] Multiple Game Names
Reply With Quote #44

Dexter i guess you can do it just by FAKEMETA too, No need to impose REAPI on users
PHP Code:
#include <amxmodx>
#include <fakemeta>

new ran
new NameList[][] =  
{
    
"Come Baby""AlliedModders""PORN Lovers""Any Shit""Shit Server"
}

public 
plugin_init()
{
    
register_plugin("Random Game Name""1.0""DiGiTaL");
    
register_forwardFM_GetGameDescription"GmDesc" );
}
public 
GmDesc()
{
    
ran random_num(0sizeof NameList -1)
    
forward_return(FMV_STRINGNameList[ran] );
    return 
FMRES_SUPERCEDE

instinctpt1 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 03-05-2018 , 13:05   Re: [ReAPI] Multiple Game Names
Reply With Quote #45

Quote:
Originally Posted by instinctpt1 View Post
Dexter i guess you can do it just by FAKEMETA too, No need to impose REAPI on users
PHP Code:
#include <amxmodx>
#include <fakemeta>

new ran
new NameList[][] =  
{
    
"Come Baby""AlliedModders""PORN Lovers""Any Shit""Shit Server"
}

public 
plugin_init()
{
    
register_plugin("Random Game Name""1.0""DiGiTaL");
    
register_forwardFM_GetGameDescription"GmDesc" );
}
public 
GmDesc()
{
    
ran random_num(0sizeof NameList -1)
    
forward_return(FMV_STRINGNameList[ran] );
    return 
FMRES_SUPERCEDE

That's half of the job Inst.
You need to read lines of a file bypassing ';' and "//", then seting a task or using entity think to get a random number of lines, and outputing the text to GameName as is set on the choosen line.
__________________
Relaxing is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 03-06-2018 , 01:09   Re: [ReAPI] Multiple Game Names
Reply With Quote #46

No No , Relaxing
I am not modifying his version, I am just telling that in this way it can be done too

Of course we need to add the code for a config file to read it, but i dont want shit all over my config folder xD
So i usually dont use configs file Just the source itself !
instinctpt1 is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 03-06-2018 , 09:40   Re: [ReAPI] Multiple Game Names
Reply With Quote #47

Can anyone make with ReAPI with a CVAR ? Thanks.
WhiteFang1319 is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 03-06-2018 , 14:44   Re: [ReAPI] Multiple Game Names
Reply With Quote #48

Quote:
Originally Posted by WhiteFang1319 View Post
Can anyone make with ReAPI with a CVAR ? Thanks.
And what you will do with a CVAR ? Showoff
Atleast Explain the Role ...
instinctpt1 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 03-06-2018 , 15:57   Re: [ReAPI] Multiple Game Names
Reply With Quote #49

Maybe defining the float value of second param @ change_task(), if it's using task to change it.
__________________
Relaxing is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 03-06-2018 , 22:00   Re: [ReAPI] Multiple Game Names
Reply With Quote #50

Quote:
Originally Posted by instinctpt1 View Post
And what you will do with a CVAR ? Showoff
Atleast Explain the Role ...
To change the GameName directly with cvars.
Cvar is changed-> GameName is changed. Something like that.
WhiteFang1319 is offline
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 19:52.


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