AlliedModders

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

Cryonic 03-29-2005 02:55

amx_chat
 
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..

XxAvalanchexX 03-29-2005 18:41

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.


All times are GMT -4. The time now is 09:59.

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