AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [prob] I need to know whats wrong with this (https://forums.alliedmods.net/showthread.php?t=113579)

habib2891 12-28-2009 08:52

[prob] I need to know whats wrong with this
 
hello !
if any1 can help me correct this sentence :
Quote:

new name[35]
new uid=get_user_userid(id)
get_user_name(id,name,34)

set_user_flags(id , flags=a)
server_cmd("amx_nick #%d ^"[NotMember] %s ^"",uid,name)
Its to make the server change names if the players are not reg in the forum
thx :))

Bugsy 12-28-2009 08:58

Re: [prob] I need to know whats wrong with this
 
set_user_flags() line is incorrect but can be omitted because it is not needed to change a users name.
Code:
new name[35] get_user_name(id,name,34) server_cmd("amx_nick #%d ^"[NotMember] %s ^"", get_user_userid(id) , name )

habib2891 12-28-2009 09:04

Re: [prob] I need to know whats wrong with this
 
Quote:

set_user_flags() line is incorrect but can be omitted because it is not needed to change a users name
yes , but i need it to set "a" flags by default for all not registred players

Bugsy 12-28-2009 09:37

Re: [prob] I need to know whats wrong with this
 
Quote:

Originally Posted by habib2891 (Post 1033815)
yes , but i need it to set "a" flags by default for all not registred players

PHP Code:

set_user_flagsid get_user_flagsid ) | ADMIN_IMMUNITY );

//or 

set_user_flagsid get_user_flagsid ) | ADMIN_LEVEL_A );

//also try just doing (I recall set_user_flags actually being more along the lines of add_user_flags)

set_user_flagsid ADMIN_IMMUNITY ); 


habib2891 12-28-2009 10:57

Re: [prob] I need to know whats wrong with this
 
thanks Bugsy :)


All times are GMT -4. The time now is 04:11.

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