Raised This Month: $51 Target: $400
 12% 

[Tutorial] How to PROPERLY make a self toggle command


Post New Thread Reply   
 
Thread Tools Display Modes
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-03-2014 , 18:20   Re: [Tutorial] How to PROPERLY make a toggle command
Reply With Quote #21

Quote:
Originally Posted by Powerlord View Post
Little late to the party?
Yeah, I was bored.
__________________
Dr. McKay is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 03-11-2014 , 05:42   Re: [Tutorial] How to PROPERLY make a self toggle command
Reply With Quote #22

PHP Code:
If(b_pluginisbrokencanyoufixplz)
{
  
QueryClientConvar(client"cl_disablehtmlmotd"ilikemotdsclient);
  return 
false;
}
else
{
  
BreakPlugin();
}
....
public 
Ilikemotds(QueryCookie:cookieclientConVarQueryResult:result, const String:cvarName[], const String:cvarValue[])
{
  
BanClient(client9001BANFLAG_AUTO"nope");
}

BreakPlugin()
{
  
b_pluginisbrokencanyoufixplz true;
  
GenerateSuperfluousPlugin(true);
}

GenerateSuperfluousPlugin(bool:break=true)
{
  
DoStuff(true// come on, its going to be true anyway

__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 03-11-2014 at 05:44.
friagram 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 04:17.


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