#1

How to make when player join server he cant spawn before he dont /login?
I use ladmin
Reply
#2

Код:
	if(gPlayerLogged[playerid] == 0)
	{
  	SendClientMessage(playerid, your color, "Please login before spawning.");
    	 ForceClassSelection(playerid);
    	 SetPlayerHealth(playerid,0);
 	}
Reply
#3

^or use the function OnPlayerRequestSpawn
Reply
#4

Quote:

if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, your color, "Please login before spawning.");
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0);
}

Under what i need add that?

Reply
#5

public OnPlayerSpawn
Reply
#6

Quote:

C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : error 017: undefined symbol "gPlayerLogged"
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : warning 215: expression has no effect
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : error 029: invalid expression, assumed zero
C:\DOCUME~1\otto\Desktop\Server\GAMEMO~1\FFFFFFF.p wn(1745) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply
#7

Try this (Not Tested):

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    // Request Login
    if(VERIFY IF PLAYER IS NOT LOGGED HERE (Ex: AccInfo[playerid][Logged] == 0){
    SendClientMessage(playerid,COLOR_HERE,"You are not logged! (Use: /login [Password]");
    return 0;
    }
    return 1;
    }
Reply
#8

i get errors on
Quote:

if(VERIFY IF PLAYER IS NOT LOGGED HERE (Ex: AccInfo[playerid][Logged] == 0){

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)