AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] About Plugin State (https://forums.alliedmods.net/showthread.php?t=246341)

schmurgel1983 08-16-2014 01:26

[Solved] About Plugin State
 
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.

^SmileY 08-16-2014 01:52

Re: About Plugin State
 
Search for automaton i think..

You need only change the state of plugin with

PHP Code:

state 

command :)

fysiks 08-16-2014 02:37

Re: About Plugin State
 
There exists some info on this already: https://forums.alliedmods.net/showthread.php?t=85981

schmurgel1983 08-16-2014 04:13

Re: About Plugin State
 
Quote:

Originally Posted by ^SmileY (Post 2184559)
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 (Post 2184569)
There exists some info on this already: https://forums.alliedmods.net/showthread.php?t=85981

with a comma? never tried :/
ty fysiks:)


All times are GMT -4. The time now is 13:20.

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