Gouki Posted October 10, 2020 Group: Members Topic Count: 88 Topics Per Day: 0.05 Content Count: 261 Reputation: 13 Joined: 08/12/20 Last Seen: November 21, 2024 Share Posted October 10, 2020 Hi! Does anyone know how to show #cashpoint of a player? on a GM Standpoint, #command. something like #Showcash PLAYERNAME Quote Link to comment Share on other sites More sharing options...
1 AnnieRuru Posted October 11, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 11, 2020 - script command_controller -1,{ OnInit: bindatcmd("roks", strnpcinfo(0) +"::OnRoks", 99, 99); end; OnRoks: if (!getstrlen(.@atcmd_parameters$)) { message strcharinfo(0), "Please input a player name."; end; } .@aid = getcharid(3, .@atcmd_parameters$); if (!.@aid) { message strcharinfo(0), "Player not online or not found."; end; } .@origin$ = strcharinfo(0); attachrid .@aid; message .@origin$, "This player has "+ #CASHPOINTS +" RoK Points"; end; } com'on don't have to write everything out ... right ? 1 Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted October 10, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 10, 2020 make a custom GM command via bindatcmd Onaaa: message strcharinfo(0), "This player has "+ getvar(#CASHPOINTS, getcharid(0, .@atcmd_parameters$)) +" cashpoints"; something like that Quote Link to comment Share on other sites More sharing options...
0 Gouki Posted October 11, 2020 Group: Members Topic Count: 88 Topics Per Day: 0.05 Content Count: 261 Reputation: 13 Joined: 08/12/20 Last Seen: November 21, 2024 Author Share Posted October 11, 2020 Hi @AnnieRuru I actually have similar to what you have, but whenever I use the #command <Player Name> (not @command), nothing shows on my chat box.. - script command_controller -1,{ OnInit: bindatcmd("roks", strnpcinfo(0) +"::OnRoks", 99, 99); end; OnRoks: message strcharinfo(0), "This player has "+ getvar(#CASHPOINTS, getcharid(0, .@atcmd_parameters$)) +" RoK Points"; end; } Quote Link to comment Share on other sites More sharing options...
Question
Gouki
Hi!
Does anyone know how to show #cashpoint of a player?
on a GM Standpoint, #command.
something like #Showcash PLAYERNAME
Link to comment
Share on other sites
3 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.