AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   War3 modification (https://forums.alliedmods.net/showthread.php?t=25779)

L0neW0lf 03-20-2006 01:47

War3 modification
 
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

Hawk552 03-20-2006 05:31

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 :)

L0neW0lf 03-20-2006 05:45

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 :)

Hawk552 03-20-2006 06:04

Yes.

Freecode 03-20-2006 06:04

one &

L0neW0lf 03-20-2006 08:23

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 ?


All times are GMT -4. The time now is 16:38.

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