Raised This Month: $ Target: $400
 0% 

War3 modification


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
L0neW0lf
Member
Join Date: Mar 2006
Location: Denmark
Old 03-20-2006 , 01:47   War3 modification
Reply With Quote #1

Hi there

I am trying to make some modifications on my war3 server.

I need to know if the user i listed as default user, then it does one thing and if not another.

I need an if statement that do the following thing.

myUser = get_user_authid
If myUser = ADMIN_USER then
code
Else
code
end if

Hopy you understand and hope someone can help me

/Lone Wolf
L0neW0lf is offline
Send a message via ICQ to L0neW0lf Send a message via MSN to L0neW0lf Send a message via Skype™ to L0neW0lf
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-20-2006 , 05:31  
Reply With Quote #2

Umm... not exactly sure what you're asking. Looks too simple <.< >.>

Code:
if(get_user_flags(id) && ADMIN_USER) {     // do whatever } else {     // do else statement }

And I see you know BASIC
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
L0neW0lf
Member
Join Date: Mar 2006
Location: Denmark
Old 03-20-2006 , 05:45  
Reply With Quote #3

Yah i know basic

if(get_user_flags(id) && ADMIN_USER) <- does that mean that the If is true if the user is has the flag z in user.ini ?

if it does it is exactly what i am looking for
L0neW0lf is offline
Send a message via ICQ to L0neW0lf Send a message via MSN to L0neW0lf Send a message via Skype™ to L0neW0lf
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-20-2006 , 06:04  
Reply With Quote #4

Yes.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-20-2006 , 06:04  
Reply With Quote #5

one &
Freecode is offline
L0neW0lf
Member
Join Date: Mar 2006
Location: Denmark
Old 03-20-2006 , 08:23  
Reply With Quote #6

Thanks a lot dudes

One final minor thing all users do they get loaded into cache on server when user joins or do it contact user.ini on every event ?
L0neW0lf is offline
Send a message via ICQ to L0neW0lf Send a message via MSN to L0neW0lf Send a message via Skype™ to L0neW0lf
Reply


Thread Tools
Display Modes

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 16:38.


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