AlliedModders

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

Revelation 01-22-2005 15:22

some questions
 
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?

XxAvalanchexX 01-22-2005 17:01

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!");   } }


All times are GMT -4. The time now is 19:24.

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