Detaljan opis problema: Znaci kad udjem u account upisem password ono mene izbaci gore iznad ballas baze i letim tj padam dole. Kordinate su mi normalne ali opet isto.
Dio skripte: dole
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://i.imgur.com/PYeQU.png
public OnPlayerSpawn(playerid)
{
//------------------------------------------------------------------------------
InitLockDoors(playerid);
STDPlayer = 0;
if(IsPlayerNPC(playerid)) return 1;
//------------------------------------------------------------------------------
if(PlayerInfo == 0 || PlayerInfo == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 1715.8232,-1931.6327,13.5680);
SetPlayerFacingAngle(playerid, 180);
PlayerInfo = 0;
return 1;
}
if (gTeam == 4) //medic / criminal reset team
{
gTeam = 3;
}
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "**Moras se logirati prije spawna **");
KickPlayer = 1;
}
if(gTeam == 11 && PlayerInfo < 1)
{
MedicBill = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Ti nisi jedan lider ti si ponovo civil !");
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
if(gTeam == 5)
{
if(PlayerInfo < 1)
{
MedicBill = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Nisi clan Family-e, sada si Civil !");
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
}
if(gTeam == 10)
{
if(PlayerInfo != 8)
{
MedicBill = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "You are not a Member of this Agency, you are now a Civilian !");
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
}
if(gTeam == 2 && PlayerInfo > 3)
{
MedicBill = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "You haven't applied for being an Officer / FBI / National Guard, you are now a Civilian !");
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo = CIV;
SpawnPlayer(playerid);
}
if(PlayerInfo > 0) { SetPlayerSkin(playerid, PlayerInfo); }
else { SetPlayerSkin(playerid, PlayerInfo); }
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
for(new i = 0; i < sizeof(Turfs); i++)
{
GangZoneShowForPlayer(playerid, i, TurfInfo);
}
return 1;
}
public CKLog(string[])
{
new entry;
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("ck.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
public PayLog(string[])
{
new entry;
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("pay.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
public KickLog(string[])
{
new entry;
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("kick.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
public BanLog(string[])
{
new entry;
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("ban.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
public AdmWarnLog(string[])
{
new entry;
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("admwarn.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}