onplayerconnect question
#10

Quote:
Originally Posted by XeoN_13
hello, does any one know how to prevent people from talking unless they spawn?
Simple:
pawn Код:
public OnPlayerText(playerid, text[])
{
  if(GetPlayerState(playerid) == 7) return SendClientMessage(playerid, 0xFFFFFFAA, "You must spawn first!");
  // 7 - Player is wasted or on class selection
  return 1;
}
Reply


Messages In This Thread
onplayerconnect question - by XeoN_13 - 18.08.2009, 00:07
Re: onplayerconnect question - by coole210 - 18.08.2009, 00:11
Re: onplayerconnect question - by XCultz - 18.08.2009, 00:42
Re: onplayerconnect question - by Djiango - 18.08.2009, 00:50
Re: onplayerconnect question - by XeoN_13 - 18.08.2009, 02:19
Re: onplayerconnect question - by ilikepie2221 - 18.08.2009, 02:31
Re: onplayerconnect question - by XeoN_13 - 18.08.2009, 03:15
Re: onplayerconnect question - by XeoN_13 - 18.08.2009, 04:16
Re: onplayerconnect question - by Djiango - 18.08.2009, 09:20
Re: onplayerconnect question - by Correlli - 18.08.2009, 09:27

Forum Jump:


Users browsing this thread: 2 Guest(s)