Problem with login before spawn
#5

Quote:
Originally Posted by dr.lozer
Посмотреть сообщение
do like this

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
   if(PlayerInfo[playerid][LoggedIn] == 0) // People use this kind of functions :P you must use your own!
   {
      SendClientMessage(playerid, COLOR_RED,"ERROR: Your not loggedin to get spawn");
      return 0;
   }
   return 1;
}

public OnPlayerCommandReceived(playerid, cmdtext[])
{
    /*if (!IsPlayerSpawned(playerid)) we dont need this
    {*/

    if (strcmp(cmdtext, "/login", true))
    {
We need it! Because i don't want to use other commands. In request class you can't type any commands only Login.. And that my function says you can't use any commands except /login.
Reply


Messages In This Thread
Problem with login before spawn - by Channeru - 25.11.2012, 19:12
Re: Problem with login before spawn - by [D]ry[D]esert - 25.11.2012, 19:16
Re: Problem with login before spawn - by Channeru - 25.11.2012, 19:17
Re: Problem with login before spawn - by dr.lozer - 25.11.2012, 19:17
Re: Problem with login before spawn - by Channeru - 25.11.2012, 19:20
Re: Problem with login before spawn - by dr.lozer - 25.11.2012, 19:26
Re: Problem with login before spawn - by Channeru - 25.11.2012, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)