NPC Problem
#3

I know that:

pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) return true;
    pLogged[playerid] = false;
    RemoveBuildings(playerid);
    return 1;
}
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid)) return true;.....


public OnPlayerRequestSpawn(playerid)
{
    if(IsPlayerNPC(playerid)){
        pLogged[playerid] = true;
        return true;
    }
    if(!pLogged[playerid]) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login Dialog", "You must login first!\n Type password bellow to login!", "Login", "Close");
    return 1;
}
Reply


Messages In This Thread
[Solved] NPC Problem - by CoaPsyFactor - 12.12.2012, 22:18
Re: NPC Problem - by Threshold - 12.12.2012, 22:21
Re: NPC Problem - by CoaPsyFactor - 12.12.2012, 22:24
Re: NPC Problem - by Mauzen - 12.12.2012, 22:24
Re: NPC Problem - by CoaPsyFactor - 12.12.2012, 22:26
Re: NPC Problem - by CoaPsyFactor - 12.12.2012, 22:36
Re: NPC Problem - by Mauzen - 12.12.2012, 22:55

Forum Jump:


Users browsing this thread: 1 Guest(s)