Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Exec function admin requirement

 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk
View previous topic :: View next topic  
Author Message
Neo_b



Joined: 01 Jun 2007
Posts: 25

PostPosted: Tue May 27, 2008 1:54 pm    Post subject: Exec function admin requirement Reply with quote

Hello, I have a problem with my exec function. :O It is located in an item that is owned by a player. The function only sends a clientmessage to the owner, but it only works if I am logged in as admin. (its UT engine)
_________________
Neo_b - http://neo_b.go.pl
Back to top
View user's profile Send private message
Bleeder91



Joined: 28 Sep 2006
Posts: 265

PostPosted: Tue May 27, 2008 5:30 pm    Post subject: Reply with quote

prolly cuz the rest it needs to do requires admin rights. it helps when you show me what you have, post it ehre or wisper me, then ill take a look at it
_________________
Unreallity - Wrath of the Skaarj is still developing! Check out the new refreshing website!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Neo_b



Joined: 01 Jun 2007
Posts: 25

PostPosted: Tue May 27, 2008 7:59 pm    Post subject: Reply with quote

class antibugcmds extends pickup;

//some commands that contain "if(!playerpawn(owner).playerreplicationinfo.badmin) return;"

exec function antibuginfo()
{
playerpawn(owner).clientmessage("Some long message");
}
_________________
Neo_b - http://neo_b.go.pl
Back to top
View user's profile Send private message
Dimension4



Joined: 22 Feb 2008
Posts: 3

PostPosted: Tue Jul 08, 2008 10:17 pm    Post subject: Reply with quote

If functions are on server and you use HA you need to use if (!PlayerPawn(Owner).bAdmin) return; well and you seem to have missed
Code:
replication
{
reliable if (Role<4)
      AntiBugInfo, ...<your functions>...;
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group