Spawning closing server
#3

I haven't found any errors within the server_log.

OnPlayerSpawn.
pawn Код:
public OnPlayerSpawn(playerid)
{
    ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, "San Andreas Avation ~ Spawn", "Los Santos Airport\nSan Fierro Airport[WIP]\nLas Venturas Airport[WIP]", "Spawn", "");
    GameTextForPlayer(playerid, " ", 500, 5);
    if(MoneyGiven[playerid] != -1)
    {
        GivePlayerMoney(playerid, MoneyGiven[playerid]);
        MoneyGiven[playerid] = -1;
    }
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    TogglePlayerSpectating(playerid, false);

    SetPlayerInterior(playerid, 0);
    SetCameraBehindPlayer(playerid);

    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(playerid, PlayerJoin);
            new string[128], h, m, s, day, month, year;
            getdate(year, month, day);
            gettime(h, m, s);
            format(string, sizeof(string), "~g~%s~n~~w~Has Joined. ~g~%d/%d/%d - %d:%d:%d", PlayerName(i), day, month, year, h, m, s);
            TextDrawShowForPlayer(i, PlayerJoin);
            TextDrawSetString(PlayerJoin, string);
        }
    }
    return 1;
}
OnPlayerRequestClass.
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    return 1;
}
Reply


Messages In This Thread
Spawning closing server - by Luis- - 14.09.2011, 19:58
Re: Spawning closing server - by Ash. - 14.09.2011, 19:59
Re: Spawning closing server - by Luis- - 14.09.2011, 20:17
Re: Spawning closing server - by Ash. - 14.09.2011, 20:21
Re: Spawning closing server - by Davz*|*Criss - 14.09.2011, 20:23
Re: Spawning closing server - by Luis- - 14.09.2011, 20:46
Re: Spawning closing server - by Ash. - 14.09.2011, 20:58
Re: Spawning closing server - by Luis- - 14.09.2011, 21:03
Re: Spawning closing server - by Ash. - 14.09.2011, 21:15
Re: Spawning closing server - by Luis- - 14.09.2011, 21:50

Forum Jump:


Users browsing this thread: 2 Guest(s)