14.09.2011, 20:17
I haven't found any errors within the server_log.
OnPlayerSpawn.
OnPlayerRequestClass.
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;
}
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
return 1;
}