Raised This Month: $ Target: $400
 0% 

[Solved] About Plugin State


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 08-16-2014 , 01:26   [Solved] About Plugin State
Reply With Quote #1

Hi,
about Plugin state it is possible that some functions has multiple states?

Code:
public FunctionOne() <>
{
    code 1
}
public FunctionOne() <cstrike>
{
    code 2
}
public FunctionOne() <czero>
{
    code 2
}
public FunctionOne() <tfc>
{
    code 3
}
Here I want that both states use the same code (2):
What I have to do? Like <cstrike|czero> or somethink like that?


Code:
public FunctionTwo() <>
{
    code 1
}
public FunctionTwo() <cstrike>
{
    code 2
}
public FunctionTwo() <czero>
{
    code 3
}
public FunctionTwo() <tfc>
{
    code 4
}
Here is a other sample but any function use his own unique code. (1, 2, 3, 4)
Not that you think I only need it at one point.
__________________

Working on:
nothing

Last edited by schmurgel1983; 08-16-2014 at 04:13.
schmurgel1983 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-16-2014 , 01:52   Re: About Plugin State
Reply With Quote #2

Search for automaton i think..

You need only change the state of plugin with

PHP Code:
state 
command
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-16-2014 , 02:37   Re: About Plugin State
Reply With Quote #3

There exists some info on this already: https://forums.alliedmods.net/showthread.php?t=85981
__________________
fysiks is offline
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 08-16-2014 , 04:13   Re: About Plugin State
Reply With Quote #4

Quote:
Originally Posted by ^SmileY View Post
Search for automaton i think..

You need only change the state of plugin with state command
Before Posting please read my post complete.
Quote:
Originally Posted by fysiks View Post
There exists some info on this already: https://forums.alliedmods.net/showthread.php?t=85981
with a comma? never tried :/
ty fysiks
__________________

Working on:
nothing
schmurgel1983 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 13:20.


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