It could be
Code Select
e(text);
as he has given the encryption and for sha256 u need hashing plugin
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: burpy on Mar 13, 2018, 12:40 PMhere is function onplayerCommand on my main.nutAccording to my knowledge there is a reason why we use the code option.
function onPlayerCommand( player, cmd, text )
{
if(cmd == "heal")
{
local hp = player.Health;
if(hp == 100) Message("[#FF3636]Error - [#8181FF]Use this command when you have less than 100% hp !");
else {
player.Health = 100.0;
MessagePlayer( "[#FFFF81]---> You have been healed !", player );
}
}
else if(cmd == "goto") {
if(!text) MessagePlayer( "Error - Correct syntax - /goto <Name/ID>' !",player );
else {
local plr = FindPlayer(text);
if(!plr) MessagePlayer( "Error - Unknown player !",player);
else {
player.Pos = plr.Pos;
MessagePlayer( "[ /" + cmd + " ] " + player.Name + " was sent to " + plr.Name, player );
}
}
}
else if(cmd == "bring") {
if(!text) MessagePlayer( "Error - Correct syntax - /bring <Name/ID>' !",player );
else {
local plr = FindPlayer(text);
if(!plr) MessagePlayer( "Error - Unknown player !",player);
else {
plr.Pos = player.Pos;
MessagePlayer( "[ /" + cmd + " ] " + plr.Name + " was sent to " + player.Name, player );
}
}
}
else if(cmd == "exec")
{
if( !text ) MessagePlayer( "Error - Syntax: /exec <Squirrel code>", player);
else
{
try
{
local script = compilestring( text );
script();
}
catch(e) MessagePlayer( "Error: " + e, player);
}
}
return 1;
}