17.11.2012, 10:46
Only these keys can be detected by SA-MP if pressed!
The way you want to do it! It can only be done liike. Press T and Enter the number of skill you want.
Then you are required to make a player array. And make its value 1 when this menu is shown to him.
And check under OnPlayerText when this array for player is 1. Then The number enetered
The way you want to do it! It can only be done liike. Press T and Enter the number of skill you want.
Then you are required to make a player array. And make its value 1 when this menu is shown to him.
And check under OnPlayerText when this array for player is 1. Then The number enetered
pawn Код:
public OnPlayerText(playerid, text[])
{
if(ViewingMenu[playerid] == 1)
{
new value = strval(text);
if(value == 1)
{
//Do this
}
}
return 0;
}