gdje greska

Započeo MosT_WanteD
16. Avg. 2010.
844
pregleda
5
postova
Ahmed
4
Made Man
16. Avg. 2010.
public OnPlayerSpawn(playerid)
{
if (gdebug >=1){printf("OnPlayerSpawn Playerid:-1417.0,-295.8,14.1", playerid);}
if (teamcarlock)
{
TeamLockDoors(playerid);
}
InitLockDoors(playerid);
if(accountplay)
{
if (gdebug >=1){printf("accountplay");}
if (gPlayerAccount == 0)
{
gTeam = 0;
GameTextForPlayer(playerid, "~w~Dobrodosli na CrazY BalkaN .~n~za igranje molimo kreirajte account, upisi ~n~~r~/regnick (password)~w~ za registraciju", 20000, 3);
//SetPlayerInterior(playerid,0);
SetPlayerInterior(playerid,3);
PlayerInfo = 3;
SetPlayerPos(playerid,-1417.0,-295.8,14.1);
// airport
PlayJailSound(1153 , 1154, 2000,264.395200, 77.564040, 1001.039000);
gPlayerSpawned = 1;
    return 1;
}
if (gPlayerLogged == 0)
{
gTeam = 0;
GameTextForPlayer(playerid, "~w~Za igranje se trebas logirati, upisis ~n~~g~/login (password)~w~ da se logiras na server", 20000, 3);
//SetPlayerInterior(playerid,0);
SetPlayerInterior(playerid,3);
PlayerInfo = 3;
SetPlayerPos(playerid,-1417.0,-295.8,14.1);
// airport
PlayJailSound(1153 , 1154, 2000,264.395200, 77.564040, 1001.039000);
gPlayerSpawned = 1;
    return 1;
}
}
if (gPlayerSpawned == 0)
{
gTeam = PlayerInfo;
if (gTeam == 2 && forceteam && CopCheck(playerid))
{
gTeam = 3;
PlayerInfo = 3;
SetPlayerRandomSpawn(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "CrazY BalkaN : Nije ti dozvoljeno da budes policajac.");
}
if (gTeam == 1 && forceteam && MedCheck(playerid))
{
gTeam = 3;
PlayerInfo = 3;
SetPlayerRandomSpawn(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "CrazY BalkaN : Nije ti dozvoljeno da budes bolnicar.");
}
if (gTeam == 4)
{
gTeam = PlayerInfo;
}
SetPlayerRandomSpawn(playerid);
if (gdebug){printf("DEBUG id = %d gTeam = %d",playerid,gTeam);}

}
return 1;
}
e vako sam iskriptao i kada udem na server porta me na centar mape tj ovdje http://yfrog.com/0fsamp018dip
mikec
4
Made Man
16. Avg. 2010.
Hm, jel ti je pawno prijavio neku grešku/upozorenje u kodu? Ako jeste, možeš li je napisati?
Ahmed
4
Made Man
16. Avg. 2010.
ne nije nista ja udem i kad kucam /kill ili poginem nekako porta me na centar mape
mikec
4
Made Man
16. Avg. 2010.
Aha, a ti želiš kada si mrtav da se spawnuješ na koordinatima: -1417.0,-295.8,14.1 ?

Onda ovde gore umesto:  if (gdebug >=1){printf("OnPlayerSpawn Playerid:-1417.0,-295.8,14.1", playerid);}

Probaj koristiti:

if(gdebug >= 1)
{
      SetPlayerPos(playerid,  -1417.0,-295.8,14.1);
}

Iako ne znam sta ti oznacava gdebug ali ok.
Ahmed
4
Made Man
16. Avg. 2010.
nece  😢 da nije do interiora jer ja kad udem s citom i idem teleport interijor porta me ovdje http://yfrog.com/0fsamp018dip

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha