Admin / Freeslot Rename + Announce
1 Attachment(s)
I'm having troble getting it to work properly.
It's supposed to announce when the admin comes online and before that change the nick of the admin / freeslot. Sorry for my bad english. Code:
#include <amxmodx> |
Re: Admin / Freeslot Rename + Announce
You should use 'id' instead of 'x2'
Code:
|
Re: Admin / Freeslot Rename + Announce
Is this better?
Code:
|
Re: Admin / Freeslot Rename + Announce
I found this in your script
if (get_user_flags(id) && ADMIN_ADMIN) |
Re: Admin / Freeslot Rename + Announce
I'm new to this scripting so.
I have been trying to an admin: <nick> - Admin and to one with only freeslot <nick> - Freeslot and then announce when the person comes online. I don't know i the code is right or wrong but I have been trying. That you found is what I tought the bit that sorted out the one's that where not admins. But as I said that im new to this and I don't know if it's the right code. |
Re: Admin / Freeslot Rename + Announce
That's correct sleepwalker,
And you should also use 'get_user_flags(id) &' instead of 'get_user_flags(id) &&' |
Re: Admin / Freeslot Rename + Announce
The Code Now looks like this.
Two problems left. 1. it's changeing the name of the admin 2 times. first to: <name> - Admin then to: <name> - Admin - Admin 2. It dosn't write out when a person comes online. Code:
|
Re: Admin / Freeslot Rename + Announce
First debug the connect message:
Code:
|
Re: Admin / Freeslot Rename + Announce
That code shows when a player comes online but I need for only the admins :/
|
Re: Admin / Freeslot Rename + Announce
Plus it must be:
if (!is_user_connected(id) || is_user_bot(id) || is_user_hltv(id)) continue; cant be outside the for function Code:
public client_putinserver(id){ |
| All times are GMT -4. The time now is 06:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.