Hi, I found a few errors in you're last script.
Error 1: setimg (300, "block.png", player.x + 0.5, player.y + 0.5); You have a space between setimg and (300...) that will cause the script not to run.
Error 2: When ever you are adding something like player.x + 0.5, player.y + 0.5 make sure you are using the += either or -= in the code I will provide you with you will see the adjusments I made and I even stored it in a seperate variable for you!
Error 3: with ("300"); is wrong check out the code below of what should work.
PHP Code:
//#CLIENTSIDE
function onCreated() {
temp.plx = player.x += 0.5; //Added this
temp.ply = player.y += 0.5; //Added this
if (this.block == "on") {
with(findimg(300)) { //the findimg should be used in this format :)
mode = 1;
red = 0; //Why have it if it is just setting to 0? :0
green = 0;
blue = 1;
alpha = 0.4;
this.message = "Hi, I'm iMask";
}
}
}
function onPlayerChats() {
if (clientr.staff == 1 && player.chat == "/showblock") {
setimg(300, "block.png", player.plx, player.ply);
this.block == "on";
onCreated();
}
}
Keep practicing and do NOT forget the clientside again
-Noof