Hi guys I am Zihad and I am not good in scripting. I could do things in pawn during 0.3z but after 0.4 only played but I always wanted to try out Squirrel even I found it very hard but for some reasons I am finding it more interesting ( xD ). So I can script a bit now. I wanted to share my first command. Its nothing though, but just sharing. Hoping to improve.
Paste these in your script in " onPlayerCommand "
else if(cmd == "troll")
{
MessageAll("** " + player.Name + " is in trouble help him by typing /helphim");
}
else if(cmd == "helphim")
{
MessagePlayer("You got trolled xD", player);
player.Health = 0.0;
MessageAll("** " + player.Name + " has been trolled XD !");
MessageAll("** If you dont wanna be trolled then type /notroll")
}
else if(cmd == "notroll")
{
MessagePlayer("You got trolled xD ", player);
player.Health = 0.0;
MessageAll("** " + player.Name + " has been trolled XD !");
MessageAll("** If you dont wanna be trolled then type /notroll")
}
Error: The index EMessage does not exist.
Don't try to solve it I just figured it out by looking at EMessage as I'm not those usual FinchGuys :D
Btw what I mean is EMessage only exists in some scripts
You can replace it with Message (maybe MessageAll)
Thanks Crystal I will fix it ASAP :D
Hehehe XD Nice one, Hope you get successful in future scripting.
Hehe! Nice trolling :P
Hope you get better soon.
Sometimes this cmds also make fun.
Nice Work