AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   effect all? (https://forums.alliedmods.net/showthread.php?t=28747)

SuperDuper 05-21-2006 19:42

effect all?
 
what is the code for 1 command to efect everyone in the server????

Peli 05-21-2006 20:01

Try taking a look at how other people did their plugins, that have a similar idea as to what you're looking for. You'll learn better off noticing it than someone telling you. Trust me.

SuperDuper 05-21-2006 20:02

k, thank you

Hawk552 05-21-2006 20:05

For some commands (such as client_print) you can use 0 for the id, which prints to everyone.

For others, you can use get_players and then loop through each cell in the array, which will contain an index of a player. You can use those indices to effect each player in the loop.


All times are GMT -4. The time now is 16:25.

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