Raised This Month: $ Target: $400
 0% 

effect all?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SuperDuper
Member
Join Date: May 2006
Location: na
Old 05-21-2006 , 19:42   effect all?
Reply With Quote #1

what is the code for 1 command to efect everyone in the server????
__________________
[Team.Profit] Profit' <LDR>. Our server owns!

CS:CZ or DIE
SuperDuper is offline
Send a message via AIM to SuperDuper Send a message via MSN to SuperDuper Send a message via Yahoo to SuperDuper
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 05-21-2006 , 20:01  
Reply With Quote #2

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.
Peli is offline
Send a message via MSN to Peli
SuperDuper
Member
Join Date: May 2006
Location: na
Old 05-21-2006 , 20:02  
Reply With Quote #3

k, thank you
__________________
[Team.Profit] Profit' <LDR>. Our server owns!

CS:CZ or DIE
SuperDuper is offline
Send a message via AIM to SuperDuper Send a message via MSN to SuperDuper Send a message via Yahoo to SuperDuper
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-21-2006 , 20:05  
Reply With Quote #4

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.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 16:25.


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