25.06.2017, 02:46
Can someone show me how to make a simple script?
I want to know how to make a mind reading script, I have an idea how to start it but I'm not that good.
So the goal here is when the player /mindread, he can ask the target any question and the target will have no choice but to answer the question, for example /mindread (playerid) "Where were you last night?"
so now a input dialog would pop up on the target's screen saying "Your mind is being read, answer the question below, and do not lie, lying is cheating."
The input dialog would allow the player to answer the question and they can submit it to the mindreader (which would be the result) or cancel it.
If you need more info, feel free to ask me.
I want to know how to make a mind reading script, I have an idea how to start it but I'm not that good.
PHP код:
CMD:mindread(playerid, params[])
{
new giveplayerid;
new result[120];
if(sscanf(params, "rs[120]", giveplayerid, result))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /(m)ind®ead [playerid/PartOfName] [message]");
return 1;
}
so now a input dialog would pop up on the target's screen saying "Your mind is being read, answer the question below, and do not lie, lying is cheating."
The input dialog would allow the player to answer the question and they can submit it to the mindreader (which would be the result) or cancel it.
If you need more info, feel free to ask me.