(ShowPlayerNameTagForPlayer) Problem.
#2

OnPlayerCommandText
pawn Код:
if (strcmp("/namesoff", cmdtext, true, 10) == 0)
    {
    Namesoff(playerid);
    SendClientMessage(playerid, COLOR_YELLOW, "You have turned nametags off.");
    return 1;
    }

    if (strcmp("/nameson", cmdtext, true, 10) == 0)
    {
    Nameson(playerid);
    SendClientMessage(playerid, COLOR_YELLOW, "You have turned nametags on.");
    return 1;
    }
Anywhere
pawn Код:
stock Namesoff(playerid)
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
  ShowPlayerNameTagForPlayer(playerid, i, false);
  }
}
//---------------------------------------------------
stock Nameson(playerid)
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
  ShowPlayerNameTagForPlayer(playerid, i, true);
  }
}
Reply


Messages In This Thread
(ShowPlayerNameTagForPlayer) Problem. - by FreeSoul - 16.05.2009, 19:19
Re: (ShowPlayerNameTagForPlayer) Problem. - by dice7 - 16.05.2009, 19:28
Re: (ShowPlayerNameTagForPlayer) Problem. - by FreeSoul - 16.05.2009, 19:34
Re: (ShowPlayerNameTagForPlayer) Problem. - by member - 16.05.2009, 19:38
Re: (ShowPlayerNameTagForPlayer) Problem. - by FreeSoul - 16.05.2009, 19:41
Re: (ShowPlayerNameTagForPlayer) Problem. - by FreeSoul - 17.05.2009, 06:57

Forum Jump:


Users browsing this thread: 1 Guest(s)