Jump to content
  • 0

#cashpoints command


Question

3 answers to this question

Recommended Posts

  • 1
Posted
-	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 ?

  • Upvote 1
  • 0
Posted

make a custom GM command via bindatcmd

Onaaa:
message strcharinfo(0), "This player has "+ getvar(#CASHPOINTS, getcharid(0, .@atcmd_parameters$)) +" cashpoints";

something like that

  • 0
Posted

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;
}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...