03.07.2012, 16:58
Hello, when I connect to my server my screen flashes and gets all white saying I should stay whitin the world boundaries...
I've searched for solutions but none of them seemed to help me...
here's my OnPlayerConnect, OnPlayerRequestclass and OnPlayerSpawn
also none of the commands on player connect happen when connecting...
Thanks in advance
I've searched for solutions but none of them seemed to help me...
here's my OnPlayerConnect, OnPlayerRequestclass and OnPlayerSpawn
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 0, 0, 3);
SetPlayerCameraPos(playerid, 0, 0, 3);
SetPlayerCameraLookAt(playerid, 0, 0, 3);
return 1;
}
public OnPlayerConnect(playerid)
{
IsPlayerRacing[playerid] = false;
IsPlayerWaitingForRace[playerid] = false;
IsPlayerWaitingForTournament[playerid] = false;
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid, DIALOG, DIALOG_STYLE_LIST,"{FFFF00}Mode", "{FFFF00}|{FFFFFF}\tTournament\n{FFFF00}|{FFFFFF}\tCurrent Race\n{FFFF00}|{FFFFFF}\tHouse\n{FFFF00}|{FFFFFF}\tCar Market\n{FFFF00}|{FFFFFF}\tFree Zone", "Select", "");
SetPlayerPos(playerid, 419.800018, 2531.705322, 16.157726);
SendClientMessage(playerid, COLOR_YELLOW, "//============================================\\");
SendClientMessage(playerid, COLOR_YELLOW, "||-------------------Let's Race---------------||");
SendClientMessage(playerid, COLOR_YELLOW, "\\============================================//");
SendClientMessage(playerid, COLOR_YELLOW, "Use /cmds for commands /help for some help");
SendClientMessage(playerid, COLOR_YELLOW, "And /home to show the spawn dialog");
return 1;
}
Thanks in advance