restricting spawning in certain maps AND certain ranks
k so there was tut on restricting spawning in certain places, well, this is for certain ranks as well, so donors cant spawn in nexus for example, but staff can :P
lets use, well, nexus for example, and rank 5 (or below) as the ranks not allowed to spawn there
this goes in the spawn command btw (admincommands.cs)
you get the idea, if you want to change the ranks (or below) that can(t) spawn there, and the map.
map = case sensitive, just to be safe, havent tried any other way:P
another example just 2 be sure
anyone rank 8 or below, cannot spawn in their vault
get it?
good.
im using SD, any other source idk this should work or be some what very similar
creds: Kithio i think it was who was helping me with the player.Client.Account part thingy
edit: this ofc works for other commands as well
example: dont want donors using eff or addeff or whatever its called command in lets say wine cellar (so they cant just cheat and ruin pub wc's for others, if they wanna do that, they can spawn somewhere else, ex: t&s in sd)
just paste that in the god or eff command or whatever its called on the source ur using, and change map to (go to worlds to see wine cellar name, idk if it is WineCellar or Wine Cellar) and then make the desired ranks that cant use that command there and boom done and just change message to This command cannot be used in this map at your rank or whatever you want
lets use, well, nexus for example, and rank 5 (or below) as the ranks not allowed to spawn there
this goes in the spawn command btw (admincommands.cs)
Code:
if (player.Owner.Name == "Nexus")
{
if (player.Client.Account.Rank <= 5)
{
player.SendError("Not high enough rank to spawn in Nexus");
return false;
}
map = case sensitive, just to be safe, havent tried any other way:P
another example just 2 be sure
Code:
if (player.Owner.Name == "Vault")
{
if (player.Client.Account.Rank <= 8)
{
player.SendError("Not high enough rank to spawn in Vault");
return false;
}
get it?
good.
im using SD, any other source idk this should work or be some what very similar
creds: Kithio i think it was who was helping me with the player.Client.Account part thingy
edit: this ofc works for other commands as well
example: dont want donors using eff or addeff or whatever its called command in lets say wine cellar (so they cant just cheat and ruin pub wc's for others, if they wanna do that, they can spawn somewhere else, ex: t&s in sd)
just paste that in the god or eff command or whatever its called on the source ur using, and change map to (go to worlds to see wine cellar name, idk if it is WineCellar or Wine Cellar) and then make the desired ranks that cant use that command there and boom done and just change message to This command cannot be used in this map at your rank or whatever you want

