Raised This Month: $ Target: $400
 0% 

amx_chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cryonic
Senior Member
Join Date: Aug 2004
Location: Sweden..... (XCoder)
Old 03-29-2005 , 02:55   amx_chat
Reply With Quote #1

Hi.

I'm new to scripting and I'm trying to send a amx_chat-message. how can I do this? For saying things to all players I use something like:

client_print(0, print_chat, "Hello %s", currentName)

but for sending the message only to admins like amx_chat, I have no clue..
Cryonic is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-29-2005 , 18:41  
Reply With Quote #2

Code:
new players[32], num, i; get_players(players,num); for(i=0;i<num;i++) {    new player = players[i];    if(access(player,ADMIN_CHAT)) {       client_print(player,print_chat,"stuff here");    } }
You'll need to include amxmisc for the access function.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply


Thread Tools
Display Modes

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 10:00.


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