how to do this ?
#9

Quote:
Originally Posted by Lajko1
aha ye i was searching there for OnPlayerText but there just write something for mute , cuz this is my first time to work with callback OnPlayerText i wondering if you can show me some part of code how to do this etc ... or someone please,ty for help
I really doubt you could create this, but you can have a go.
pawn Код:
if (strcmp(text, "1", true) == 0)
{
//effect
return false;
}
If the player types 1, you can call the 'effect'. "Abernethy: 1" won't apear either.
I do suggest you use a variable to check if they're in the menu;
pawn Код:
new bool:IsInCarMenu[MAX_PLAYERS] = false;
// You can use it this way.

if (IsInCarMenu[playerid] == true/* or false*/)

IsInCarMenu[playerid] = true/* or false*/;
It would now become something along the lines of this;
pawn Код:
if (strcmp(text, "1", true) == 0 && IsInCarMenu[playerid] = true)
{
/*effect
IsInCarMenu[playerid] = false;*/

return false;
}
Reply


Messages In This Thread
how to do this ? - by Lajko1 - 14.11.2009, 13:10
Re: how to do this ? - by yom - 14.11.2009, 13:16
Re: how to do this ? - by Lajko1 - 14.11.2009, 13:36
Re: how to do this ? - by Lajko1 - 14.11.2009, 17:12
Re: how to do this ? - by yom - 14.11.2009, 17:38
Re: how to do this ? - by Lajko1 - 15.11.2009, 06:09
Re: how to do this ? - by jameskmonger - 15.11.2009, 06:20
Re: how to do this ? - by Lajko1 - 15.11.2009, 06:58
Re: how to do this ? - by Abernethy - 15.11.2009, 07:03
Re: how to do this ? - by Lajko1 - 15.11.2009, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)