Diana Posted May 27, 2019 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Share Posted May 27, 2019 I want to add @warp command to players but I don't want the players to warp to que_moon or as example gm_room How can I edit @warp command for normal players? Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted May 27, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 5 hours ago Share Posted May 27, 2019 (edited) remove the @warp usage from the player group id confing and create a script like this - script player_warp_command -1,{ OnUse: .@command$ = strtolower(.@atcmd_parameters$[0]); if(.@command$ == "") end; if(inarry(.map_black_list$,.@command$) != -1){ if(.@atcmd_numparameters == 3){ warp(.@command$,atoi(.@atcmd_parameters$[1]),atoi(.@atcmd_parameters$[2])); }else{ warp(.@command$,0,0); } } end; OnInit: bindatcmd "warp",strnpcinfo(3)+"::OnUse",0,99; setarray .map_black_list$,"gm_room","que_moon";//black listed maps. end; } if it get over the gm's @warp command , i would suggest to change the name to for example @w Edited September 18, 2024 by sader1992 fix errors Quote Link to comment Share on other sites More sharing options...
Question
Diana
I want to add @warp command to players
but I don't want the players to warp to que_moon or as example gm_room
How can I edit @warp command for normal players?
Link to comment
Share on other sites
1 answer 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.