Jump to content
  • 0
Almond Snicker

#cashpoints command

Question

3 answers to this question

Recommended Posts

  • 0
-	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 ?

Link to comment
Share on other sites

  • 0

make a custom GM command via bindatcmd

Onaaa:
message strcharinfo(0), "This player has "+ getvar(#CASHPOINTS, getcharid(0, [email protected]_parameters$)) +" cashpoints";

something like that

Link to comment
Share on other sites

  • 0

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, [email protected]_parameters$)) +" RoK Points";
end;
}

 

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.