#7

Код:
at defines - #define PlayerLoop(%1) for(new %1 = 0, pMax = MAX_PLAYERS; %1 < pMax; %1++) if(IsPlayerConnected(%1) && !IsPlayerNPC(%1))
somewhere in script

Код:
stock PlayerName(playerid)
{
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  return name;
}
OnPlayerConnect

Код:
PlayerLoop(i)
	{
                    new string[128];
                    format(string,sizeof(string),"% has joined the server" , PlayerName(playerid)
		    SendClientMessage(i,-1, string);
	}
Reply


Messages In This Thread
Help - by Mijata - 25.01.2017, 14:34
Re: Help - by ThatFag - 25.01.2017, 15:02
Re: Help - by Codeah - 25.01.2017, 15:13
Re: Help - by Mijata - 25.01.2017, 15:30
Re: Help - by ThatFag - 25.01.2017, 15:31
Re: Help - by Mijata - 25.01.2017, 15:32
Re: Help - by ThatFag - 25.01.2017, 15:43
Re: Help - by Mijata - 25.01.2017, 15:45

Forum Jump:


Users browsing this thread: 1 Guest(s)