Spawn login Problem
#1

I am trying to get it so you cant spawn until you use the /login cmd but i cant seem to get it here is what i have

public OnPlayerRequestClass(playerid, classid)
{
if(login[playerid] == 0) return SendClientMessage(playerid, -1, "{FFAF00}[ACCOUNT]Please /login first.");
return 1;
}

public OnPlayerConnect(playerid)
{
login[playerid] = 0;
return 1;
}
Can anybody tell me if im doing something wrong here?
Reply
#2

Remove it from OnPlayerRequestClass(playerid, classid).. and it under OnPlayerRequestSpawn(playerid).
Something like this:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if (login[playerid] == 0)
    {
        SendClientMessage(playerid, -1, "{FFAF00}[ACCOUNT]Please /login first.");
        return 0;
    }
    return 1;
}
Reply
#3

Hey this worked thanks i really appreciate it!
Reply
#4

Quote:
Originally Posted by Hunted...Killed
Посмотреть сообщение
Hey this worked thanks i really appreciate it!
Your welcome.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)