Raised This Month: $ Target: $400
 0% 

some questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Revelation
Junior Member
Join Date: Jan 2005
Old 01-22-2005 , 15:22   some questions
Reply With Quote #1

1. How do I send a message to only the admins in the server from the plugin when something happens. I wont go into detail but when a conditional is met it messages all admins. How do i do that?

2. with the function client_print / console_print, how do you start / write new lines?
Revelation is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-22-2005 , 17:01  
Reply With Quote #2

Use the ^n character to start a new line.

This is how you would go about messaging all the admins:
Code:
new players[32], num; get_players(players,num); for(new i=0;i<num;i++) {   new player = players[i];   if(get_user_flags(player) > 0 && !(get_user_flags(player) & ADMIN_USER)) {     client_print(player,print_chat,"* MESSAGE HERE!");   } }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
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 19:24.


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