22.08.2011, 23:09
Yep, it helped me- Thanks. But it still doesn't work... Could this be, because the player is still in ClassSelection (the menu is shown on OnPlayerConnect -> ClassSelection and the player is refused to spawn until logged in)? But also when I force-spawn the player on OnPlayerConnect it doesn't work
Thanks again for your help
Padarom
pawn Code:
public OnPlayerUpdate(playerid)
{
GetPlayerKeys(playerid,Keys[playerid],ud[playerid],lr[playerid]);
if (Menu[playerid] != 0)
{
if (ud[playerid] > 0)
{
if (Menu[playerid] == 1)
{
Menu[playerid] = 2;
TextDrawSetOutline(Welcomesz, 1);
TextDrawSetOutline(Welcomese, 0);
}
if (Menu[playerid] == 2)
{
Menu[playerid] = 3;
TextDrawSetOutline(Welcomesd, 1);
TextDrawSetOutline(Welcomesz, 0);
}
}
else if (ud[playerid] < 0)
{
if (Menu[playerid] == 3)
{
Menu[playerid] = 2;
TextDrawSetOutline(Welcomesz, 1);
TextDrawSetOutline(Welcomesd, 0);
}
if (Menu[playerid] == 2)
{
Menu[playerid] = 1;
TextDrawSetOutline(Welcomese, 1);
TextDrawSetOutline(Welcomesz, 0);
}
}
}
return 1;
}
Padarom