Delete button spawn
#2

Quote:
Originally Posted by Urefeu
Посмотреть сообщение
Hello.

When a new player come on my server, he has to register. The problem is that there is a spawn button and the player can play if he isn't registered.

My question is how to delete the spawn button and just spawn the player when I do SpawnPlayer(playerid) ?

Thanks !
If you want them to not spawn until they log in you could do the following:-

pawn Код:
if( !IsPlayerLoggedIn( playerid ) ) // change this to your own var
    {
        SendClientMessage( playerid, -1, "Error: You must log in before you spawn!" );
        return 0;
    }
Put this in OnPlayerRequestSpawn and your problem will be fixed

Regards,
FalconX
Reply


Messages In This Thread
Delete button spawn - by Urefeu - 03.07.2012, 18:17
Re: Delete button spawn - by FalconX - 03.07.2012, 18:25
Re: Delete button spawn - by ReneG - 03.07.2012, 18:27
Re: Delete button spawn - by Urefeu - 03.07.2012, 18:48
Re: Delete button spawn - by [MM]RoXoR[FS] - 04.07.2012, 03:22
Re: Delete button spawn - by Urefeu - 04.07.2012, 07:42
Re: Delete button spawn - by Urefeu - 04.07.2012, 09:43
Re: Delete button spawn - by [MM]RoXoR[FS] - 04.07.2012, 09:47
Re: Delete button spawn - by Urefeu - 04.07.2012, 10:07
Re: Delete button spawn - by Urefeu - 04.07.2012, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)