Započeo Leo aka JESAM JA
•19. Jul 2012.[POMOC] Spawn
840
pregleda
14
postova
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
48
Postovi:
11
Teme:
Pridružio se:Mar. 2012
19. Jul 2012.
Skripta koju koristim: RPG/DM Mod
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
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);
}Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,169
Postovi:
10
Teme:
Pridružio se:Nov. 2012
19. Jul 2012.
Mozda ti koordinate nisu ok,ali meni ovaj code izgleda sasvim dobro...
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;
}Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
48
Postovi:
11
Teme:
Pridružio se:Mar. 2012
19. Jul 2012.
To sam ja bolan, Ryan posta, al nema veze. Rekao sam mu da to uradi ...
UbaÄene su i kordinate sa org spawnove, i sve su radile do sada, ne znam Å¡to se zeznulo, sad dali je neÅ¡to kod OnPlayerDeath/Spawn/Login ne znam, znaÄi neÅ¡to ne valja, upiÅ¡em password i igraÄ leti iznad Ballas baze, a ja civil ? Kakve veze ima Ballas baza sa civilima.
UbaÄene su i kordinate sa org spawnove, i sve su radile do sada, ne znam Å¡to se zeznulo, sad dali je neÅ¡to kod OnPlayerDeath/Spawn/Login ne znam, znaÄi neÅ¡to ne valja, upiÅ¡em password i igraÄ leti iznad Ballas baze, a ja civil ? Kakve veze ima Ballas baza sa civilima.
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
48
Postovi:
11
Teme:
Pridružio se:Mar. 2012
19. Jul 2012.
Ovako mi je jedan napiso.
Citat:
Maybe , you have reached the limit of the objects..
Try a plugin , like streamer from Ingognito
Citat:
Maybe , you have reached the limit of the objects..
Try a plugin , like streamer from Ingognito
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,169
Postovi:
10
Teme:
Pridružio se:Nov. 2012
19. Jul 2012.
Quote from July 19, 2012, 6:36 pm:
Ovako mi je jedan napiso.
Citat:
Maybe , you have reached the limit of the objects..
Try a plugin , like streamer from Ingognito
Citat:
Maybe , you have reached the limit of the objects..
Try a plugin , like streamer from Ingognito
Mislim da taj nema pojma.
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
48
Postovi:
11
Teme:
Pridružio se:Mar. 2012
19. Jul 2012.
Quote from July 19, 2012, 6:36 pm:
Ovako mi je jedan napiso.
Citat:
Maybe , you have reached the limit of the objects..
Try a plugin , like streamer from Ingognito
Citat:
Maybe , you have reached the limit of the objects..
Try a plugin , like streamer from Ingognito
Mislim da taj nema pojma.
Mislim i ja.
Pitam se, kakave veze ima objekti sa spawnom ?
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
48
Postovi:
11
Teme:
Pridružio se:Mar. 2012
19. Jul 2012.
Sorry za DP. Moze li iko pomoci - vazno je.
Probo sam ovo.
Ali opet nece.
Probo sam ovo.
replace
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
u ovo :
SetSpawnInfo(playerid, gTeam, CIV,1715.8232,-1931.6327,13.5680, 180,0,0,0,0,0,0);Ali opet nece.
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,169
Postovi:
10
Teme:
Pridružio se:Nov. 2012
19. Jul 2012.
Quote from July 19, 2012, 7:13 pm:
Sorry za DP. Moze li iko pomoci - vazno je.
Probo sam ovo.
Ali opet nece.
Probo sam ovo.
replace
SetSpawnInfo(playerid, gTeam, CIV,0.0,0.0,0.0,0,0,0,0,0,0,0);
u ovo :
SetSpawnInfo(playerid, gTeam, CIV,1715.8232,-1931.6327,13.5680, 180,0,0,0,0,0,0);Ali opet nece.
stavi skroz neke lijeve koordinate spawna i vidi da li radi,daj vamo OnPlayerSpawn
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
48
Postovi:
11
Teme:
Pridružio se:Mar. 2012
19. Jul 2012.
OnPlayerSpawn.
public OnPlayerSpawn(playerid)
{
//------------------------------------------------------------------------------
InitLockDoors(playerid);
STDPlayer = 0;
if(IsPlayerNPC(playerid)) return 1;
//------------------------------------------------------------------------------
SetPlayerInterior(playerid,0);//setting interior for a player that doesn't match any criteria below
SetPlayerPos(playerid, 1715.8232,-1931.6327,13.5680); //setting position for a player that doesn't match any criteria below
SetPlayerFacingAngle(playerid, 180);//setting angle for a player that doesn't match any criteria below
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);
}
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,169
Postovi:
10
Teme:
Pridružio se:Nov. 2012
19. Jul 2012.
Hajde stavi ovako za civile
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469); //ovo je na aerodromu,vidi da li ce da ti radi
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;19. Jul 2012.
Quote from July 19, 2012, 8:54 pm:
Hajde stavi ovako za civile
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,1612.3240,-2330.1670,13.5469); //ovo je na aerodromu,vidi da li ce da ti radi
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
48
Postovi:
11
Teme:
Pridružio se:Mar. 2012
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava