29.06.2012, 15:13
Hey Guys,
I need some help of you guys, I got an issue. When i login it keeps flashing and saying "Stay within the world boundries."
I searched how to fix it for days! but still cant find it.
OnPlayerRequestClass
This is for spawn
Hope you guys can help me,
Thanks
I need some help of you guys, I got an issue. When i login it keeps flashing and saying "Stay within the world boundries."
I searched how to fix it for days! but still cant find it.
OnPlayerRequestClass
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerControllable(playerid, false);
SetPlayerPos(playerid,1933.6263,-2399.9102,1201.7321);
SetPlayerCameraPos(playerid, 1931.7674, -2417.5302, 1205.6908);
SetPlayerCameraLookAt(playerid, 1931.7674, -2417.5202, 1200.6908);
if(PlayerLogged[playerid] == 0)
{
mysql_reconnect();
new Query[90], EscName[MAX_PLAYER_NAME];
mysql_real_escape_string(PlayerName(playerid), EscName);
format(Query, sizeof(Query), "SELECT * FROM `users` WHERE `username` = '%s'", EscName);
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows() != 0)
{
mysql_free_result();
SendClientMessage(playerid, COLOR_SECURITY, "Please enter your password below to continue.");
DisplayDialogForPlayer(playerid, 1);
return 0;
}
else
{
mysql_free_result();
SendClientMessage(playerid, COLOR_SECURITY, "Please enter a password below to register an account.");
DisplayDialogForPlayer(playerid, 2);
return 0;
}
}
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
if(ChosenClass[playerid] == 0) { DisplayDialogForPlayer(playerid, 4); return 1; }
AntiDeAMX();
/*if(gTeam[playerid] == TEAM_PILOTS)
{
SetPlayerPos(x,y,z pilot);
//SetPlayerTeamColor(playerid);
GameTextForPlayer(playerid,"~g~Type ~r~~h~/work ~g~to start working",4000,3);
SendClientMessage(playerid,COLOR_WHITE,"» You are a {1B8AE4}Pilot.{FFFFFF} Type {1B8AE4}/work{FFFFFF} inside of an aircraft to start working.");
SendClientMessage(playerid,COLOR_WHITE,"» You can type {1B8AE4}/phelp {FFFFFF}for your role's commands, or type {1B8AE4}/helpFFFFFF} for general server help.");
*/
if(WasSpectating[playerid] == 1)
{
PurelySpawned[playerid] = 1;
SetPlayerInterior(playerid, tempinterior[playerid]);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, tempX[playerid], tempY[playerid], tempZ[playerid]);
SetPlayerFacingAngle(playerid, tempA[playerid]);
UpdateSkin(playerid);
UpdatePlayerColour(playerid);
return 1;
}
RespawnPlayer(playerid);
return 1;
}
Thanks