- script no_storage -1,{
OnInit:
bindatcmd "storage",strnpcinfo(0)+"::OnAtCommand";
end;
OnAtCommand:
if((strcharinfo(3) == "turbo_n_1") && getgroupid() < 3)
message strcharinfo(0),"You can't use @storage during this event.";
else
atcommand "@storage";
end;
}
What I'm trying to do is... I want to disable the usage of @storage on the map turbo_n_1 for any non-GMs (below group id 3). With my script right now, it works fine when a regular player (group id 0) is in the map. It displays the text & doesn't allow them to use the command. However, everywhere else, if you try to use the command (GM or not), then you get the error "@storage failed". Any ideas where I went wrong?
Question
Succubusty
Okay here's my script.
What I'm trying to do is... I want to disable the usage of @storage on the map turbo_n_1 for any non-GMs (below group id 3). With my script right now, it works fine when a regular player (group id 0) is in the map. It displays the text & doesn't allow them to use the command. However, everywhere else, if you try to use the command (GM or not), then you get the error "@storage failed". Any ideas where I went wrong?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.