Admin Only print_chat help
How would i make the code below only visable to admins instead of all:
Code:
case 1: |
Code:
|
It's better to check like this:
Code:
I also noticed you added a parameter to client_print and server_print without %s. And also, the above example probably doesn't cover using it on more than one person. If you want to use it on all admins in the server, you must use get_players and then cycle through each player, checking if they each have admin. |
Like so:
Code:
|
Quote:
There were also a couple of errors in that script. Here's a fixed and more readable version: Code:
|
Hi guys many thanks for the help so far, from what i have read the code below will only show to the admin that did the command.
Code:
case 1: Sorry to ask so many questions but its all new to me, trying to learn as much as poss as quickly as poss. Trying to run before i can walk :D :D :D Many many thanks again guys :D |
There are so many things wrong with that script. And I'm sure its not going to work the way you wanted to if you fixed all the errors.
|
I did the changes what i posted above and it seems to have worked ok, only i could see the text (admin) and no other players could.
What would you recommend instead Suicide3 for me to do to make it better or more code friendly. Thanks for any advice in advance :D |
Here is your exact code color coded.....use small tags instead of code tags.
Do you see where you screwed up? Code:
|
The more i look at the code the more of a code noob i feel, i have no idea whats wrong. Thats why i posted for help as i have such a basic idea of what to do, any help would be great m8 always happy to learn :D :D :D
|
| All times are GMT -4. The time now is 16:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.