View previous topic :: View next topic |
Author |
Message |
Neo_b
Joined: 01 Jun 2007 Posts: 25
|
Posted: Tue May 27, 2008 1:54 pm Post subject: Exec function admin requirement |
|
|
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 |
|
|
Bleeder91
Joined: 28 Sep 2006 Posts: 265
|
|
Back to top |
|
|
Neo_b
Joined: 01 Jun 2007 Posts: 25
|
Posted: Tue May 27, 2008 7:59 pm Post subject: |
|
|
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 |
|
|
Dimension4
Joined: 22 Feb 2008 Posts: 3
|
Posted: Tue Jul 08, 2008 10:17 pm Post subject: |
|
|
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 |
|
|
|