15.11.2009, 07:03
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
|
pawn Код:
if (strcmp(text, "1", true) == 0)
{
//effect
return false;
}
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*/;
pawn Код:
if (strcmp(text, "1", true) == 0 && IsInCarMenu[playerid] = true)
{
/*effect
IsInCarMenu[playerid] = false;*/
return false;
}