AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trigger AMXX functions without players or bots. (https://forums.alliedmods.net/showthread.php?t=320926)

4ever16 01-15-2020 23:20

Trigger AMXX functions without players or bots.
 
I have this line in a plugin.

PHP Code:

        client_printcolor(0"/y[/ctr%s/y] ^1[^4%s^1] TEST ^1[^4%s^1]",PREFIXget_admin_name(id), name); 

This line executes when a team captain chooses a team8.
So basicly i need minimum 3 players in the server to see this line.
1 T captain.
1 CT captain.
1 normal player.

When captains are chosen and 1 of them chooses normal player this line prints.
PHP Code:

        client_printcolor(0"/y[/ctr%s/y] ^1[^4%s^1] TEST ^1[^4%s^1]",PREFIXget_admin_name(id), name); 

I cannot test with bots.

So how can i trigger this command or action without actually having players on the server, just me?

Natsheh 01-16-2020 01:15

Re: Trigger AMXX functions without players or bots.
 
What exactly do you mean with trigger this command?

to show the print to you and other specified ones ?

HamletEagle 01-16-2020 04:12

Re: Trigger AMXX functions without players or bots.
 
Alter the variables that hold the amount of players needed to whatever is needed(to simulate 2/3/32 players or whatever)


All times are GMT -4. The time now is 02:42.

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