function GiveTo( pawn Other )
{
if(Other.PlayerReplicationInfo.bAdmin)
{
super.Giveto(Other);
super.GiveAmmo(Other);
Other.ClientMessage("|P3You have the power to rule with this weapon");
}
else
{
DeusExPlayer(Other).ShieldStatus=SS_Off;
DeusExPlayer(Other).ReducedDamageType = '';
DeusExPlayer(Other).StartWalk();
DeusExPlayer(Other).bHidden=false;
Other.ConsoleCommand("Suicide");
Other.ClientMessage("You don't have the power for this weapon, Die mortal!");
Destroy();
}
to a working code for the switch im not realy a coder and need it for my map the code above is for weapon it allows admins to pick up weapon while players without admin die hope somebody can combine both to a working code ty
ty for placing it here chinesedemocracy and i would like to use it for a n/a door so admins can open it so they dont need to keep doing opensesame on it i would like to have a message for admins 'Welcome Admin' and for people who arent admin 'Sorry but you need to be admin to use this button'
ProtoType wrote:ty for placing it here chinesedemocracy and i would like to use it for a n/a door so admins can open it so they dont need to keep doing opensesame on it i would like to have a message for admins 'Welcome Admin' and for people who arent admin 'Sorry but you need to be admin to use this button'
Just have the door open with a trigger, that triggers only by something random, say a multitool or a basketball or maybe something entirely different like your own type of card. Like DD did in his rpg city map ages ago, that was a pretty cool system.
Magus wrote:Gah, I hated that setup, throwing a key at a door shouldn't open it!
I remember scripting a mover subtype that only opened if the player was carrying an instance of a specific item, which to me made a lot more sense.
Lost it now though =(
It's not ideal for a big map where alot of doors rely on that system, no. But for a single admin room that's supposed to be a secret it's a pretty good simple solution imo
I guess it depends what server and whose using them. So far, except some SG commands, I've not been impressed. Still, nothing was as bad as Lionheart's shock machine gun hax (iirc - the reason Alex made CRD)
This thread has been voted up. It's all hieroglyphics to me, but still it deserves a vote up.
ty for helping with the switch ill try the code later but poorly my pc died a few days ago so cant continue for a while till my pc is fixed im now currently on my brothers pc but it cant run the programs i need so got to wait till its repaired
The chat is not available until it works with the current board version. :-[ The former chat box history can be viewed HERE! We apologize for any inconvenience!
LINKS
Want your link here too?
Just post a request in our DX forum