Raised This Month: $ Target: $400
 0% 

Create A Fake Cvar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-28-2009 , 16:42   Create A Fake Cvar
Reply With Quote #1

Create a fake cvar to freak people out when you change it

For fun, of course. For example:

Server cvar 'sv_virus_enabledownload' changed to 1
player: OMGWTF

This would be funny, could somebody make this?
noodleboy347 is offline
olj
Veteran Member
Join Date: Jun 2009
Old 07-28-2009 , 17:01   Re: Create A Fake Cvar
Reply With Quote #2

You just need to Reg new cvar. It would be "two-lines" plugin =) Funny idea though.
__________________
olj is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-28-2009 , 17:05   Re: Create A Fake Cvar
Reply With Quote #3

PHP Code:
#include <sourcemod>

public OnPluginStart()
{
    
RegAdminCmd("fakevirus"Command_FakeVirusADMFLAG_ROOT);
}

public 
Action:Command_FakeVirus(clientargs)
{
    
PrintToChatAll("Server cvar 'sv_virus_enabledownload' changed to 1");
    return 
Plugin_Handled;

psychonic is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-28-2009 , 17:14   Re: Create A Fake Cvar
Reply With Quote #4

Excellent, thanks. I better start looking into Sourcepawn coding...
noodleboy347 is offline
Chris-_-
SourceMod Donor
Join Date: Oct 2008
Old 07-28-2009 , 19:48   Re: Create A Fake Cvar
Reply With Quote #5

Lmfao, that's fucked up >.<
Chris-_- is offline
Reply



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 03:12.


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