kako promeniti spawn

Započeo Urroxx, Jun 23, 2017, 12:33:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 6 gostiju pregledaju ovu temu.

Skripta koju koristim:Asus Gaming RolePlay by Andro
Detaljan opis problema:Ovako hocu da promenim spawn igraca na drugo mesto al nmg nac de da stavim njegovo mesto za spawnovanje to jest poziciju
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Respect to: Muma, King2, Harexe, kockicaa, LoOdak, Basovski, Bosnjo, Amain, Kasperzi, Faris, Andro., Edo_Castallano.


Big Respect to: LoOdaK

OnPlayerSpawn - Poziva se kod spawna igrača.

Tu pronaÄ'i gdje ispituje koji je spawn odabrao , 1 je vjerojatno pocetni

Samo ima
public OnPlayerSpawn(playerid)
{
    StopAudioStreamForPlayer(playerid);
	TextDrawHideForPlayer(playerid,OC1); TextDrawHideForPlayer(playerid,OC2); TextDrawHideForPlayer(playerid,OC3);
	TextDrawHideForPlayer(playerid,OC5); TextDrawHideForPlayer(playerid,OC6);
	TextDrawHideForPlayer(playerid,OC7); TextDrawHideForPlayer(playerid,OC8); TextDrawHideForPlayer(playerid,OC9);
	IgracAnimira[playerid] = 0;
	BelaBojaIgraca(playerid); SpawnIgraca(playerid); ResetujVar(playerid); UsaoFirma[playerid] = -1;
	SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
	vratabanka[playerid] = false;
Respect to: Muma, King2, Harexe, kockicaa, LoOdak, Basovski, Bosnjo, Amain, Kasperzi, Faris, Andro., Edo_Castallano.


Big Respect to: LoOdaK

Pronadji SpawnIgraca(

Tu se nalazi

izadje mi ovo
forward Tutorial6(playerid);
public Tutorial6(playerid)
{
    TogglePlayerSpectating(playerid, 0);
	KillTimer(TutorialTimer6[playerid]);
    TextDrawHideForPlayer(playerid,Tut[0][playerid]); OcistiChat(playerid,80);
	TextDrawHideForPlayer(playerid,Tut[1][playerid]); TextDrawHideForPlayer(playerid,Tut[2][playerid]);
	TextDrawHideForPlayer(playerid,Tut[3][playerid]); TextDrawHideForPlayer(playerid,Tut[4][playerid]);
	TextDrawHideForPlayer(playerid,Tut[5][playerid]); TextDrawHideForPlayer(playerid,Tut[6][playerid]);
	TextDrawHideForPlayer(playerid,Tut[7][playerid]); TextDrawHideForPlayer(playerid,Tut[8][playerid]);
	TextDrawHideForPlayer(playerid,Tut[9][playerid]); TextDrawHideForPlayer(playerid,Tut[10][playerid]);
	TextDrawHideForPlayer(playerid,Tut[11][playerid]); TextDrawHideForPlayer(playerid,Tut[12][playerid]);
	TextDrawHideForPlayer(playerid,Tut[13][playerid]);
	TextDrawShowForPlayer(playerid, BankTD[playerid]);
	TextDrawShowForPlayer(playerid, LevelTD[playerid]);
	SetCameraBehindPlayer(playerid); TextDrawShowForPlayer(playerid, EXP[playerid]);
	new string[256]; PlayerInfo[playerid][pTutorial] = 1;
    format(string, sizeof(string), ""ZLATNA"Dobrodosao %s na Balkan Corporation RolePlay.", ProveraImenaBDC(playerid));
    SCM(playerid, -1, string);
    SCM(playerid, -1, ""ZLATNA"[BC:RP]: "BELA"Uzivajte igrajuci na nasem serveru");
    SCM(playerid, -1, ""ZLATNA"[BC:RP]: "BELA"Za pomoc obratite se na /pitaj,/report ili /novi");
	TogglePlayerControllable(playerid, 1); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
    if(PlayerInfo[playerid][pSex] == 1) { SetPlayerSkin(playerid, 29); PlayerInfo[playerid][pSkin] = 29; }
	if(PlayerInfo[playerid][pSex] == 2) { SetPlayerSkin(playerid, 93); PlayerInfo[playerid][pSkin] = 93; }
	UlogovanProvera[playerid] = 1; new rand = random(sizeof(RandomSpawn2));
	SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], RandomSpawn2[rand][0], RandomSpawn2[rand][1], RandomSpawn2[rand][2], RandomSpawn2[rand][3], 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid); SpawnIgraca(playerid); SavePlayer(playerid);
   	return 1;
}

Respect to: Muma, King2, Harexe, kockicaa, LoOdak, Basovski, Bosnjo, Amain, Kasperzi, Faris, Andro., Edo_Castallano.


Big Respect to: LoOdaK

i ovo
public OnPlayerSpawn(playerid)
{
    StopAudioStreamForPlayer(playerid);
   TextDrawHeForPlayer(playerid,OC5); TextDrawHideForPlayer(playerid,OC6);
   TextDrawHideForPlayer(playerid,OC7); TextDrawHideForPlayer(playerid,OC8); TextDrawHideForPlayer(playerid,OC9);
   IgracAnimira[plaideForPlayer(playerid,OC1); TextDrawHideForPlayer(playerid,OC2); TextDrawHideForPlayer(playerid,OC3);
   TextDrawHidyerid] = 0;
   BelaBojaIgraca(playerid); SpawnIgraca(playerid); ResetujVar(playerid); UsaoFirma[playerid] = -1;
   SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
   vratabanka[playerid] = false;


a posle za lidere
Respect to: Muma, King2, Harexe, kockicaa, LoOdak, Basovski, Bosnjo, Amain, Kasperzi, Faris, Andro., Edo_Castallano.


Big Respect to: LoOdaK

NaÄ'i gdje ti je definisan SpawnIgraca, ne gdje se nalazi inace.

Potrazi public SpawnIgraca (ako nema onda pronadji stock SpawnIgraca)

Ima Stock al tu za lidere kuce i ima spawn normal al tu nmg nis menjat to jest kodove
Respect to: Muma, King2, Harexe, kockicaa, LoOdak, Basovski, Bosnjo, Amain, Kasperzi, Faris, Andro., Edo_Castallano.


Big Respect to: LoOdaK

Citat: Ur®Osâ,,¢ poslato Jun 23, 2017, 13:16:50 POSLE PODNE
Ima Stock al tu za lidere kuce i ima spawn normal al tu nmg nis menjat to jest kodove

Kako ne mozes?

PlayerInfo[playerid][pProveraSpawna] = SPAWN_NORMAL;
			new rand = random(sizeof(RandomSpawn));
			SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
			SetPlayerInterior(playerid, 0);
Respect to: Muma, King2, Harexe, kockicaa, LoOdak, Basovski, Bosnjo, Amain, Kasperzi, Faris, Andro., Edo_Castallano.


Big Respect to: LoOdaK

To je "UP" edit i na svakom up modu se spawn mijenja na randomspawn pronadji ga u skripti

-Delic Enadin
-15
-11/7




- HTML
- PAWNO Scripring
- JAVA SCRIPT

Koji da promenim
new Float:RandomSpawn[4][3] =
{
    {399.58392, -1531.13086, 32.24300},
    {399.54449, -1534.02527, 32.24300},
    {396.55249, -1530.89282, 32.24300},
    {396.45438, -1533.81836, 32.24300}
};



new Float:RandomSpawn2[3][4]=
{
    {399.58392, -1531.13086, 32.24300},
    {399.54449, -1534.02527, 32.24300},
    {396.45438, -1533.81836, 32.24300}
};


Respect to: Muma, King2, Harexe, kockicaa, LoOdak, Basovski, Bosnjo, Amain, Kasperzi, Faris, Andro., Edo_Castallano.


Big Respect to: LoOdaK

Citat: Ur®Osâ,,¢ poslato Jun 24, 2017, 12:37:49 POSLE PODNE
Koji da promenim
new Float:RandomSpawn[4][3] =
{
    {399.58392, -1531.13086, 32.24300},
    {399.54449, -1534.02527, 32.24300},
    {396.55249, -1530.89282, 32.24300},
    {396.45438, -1533.81836, 32.24300}
};



new Float:RandomSpawn2[3][4]=
{
    {399.58392, -1531.13086, 32.24300},
    {399.54449, -1534.02527, 32.24300},
    {396.45438, -1533.81836, 32.24300}
};

U oba newa stavljas svoje coord... npr umjesto svih tih staviš {233,233,233} to jest {x,y,z} kontas i na jednoj npr stavis {233
Na drugoj 234 na trećoj 235
Poslednja Izmena: Jun 24, 2017, 12:50:32 POSLE PODNE od Delicâ„¢

-Delic Enadin
-15
-11/7




- HTML
- PAWNO Scripring
- JAVA SCRIPT

Citat: Delicâ,,¢ poslato Jun 24, 2017, 12:48:25 POSLE PODNE
Citat: Ur®Osâ,,¢ poslato Jun 24, 2017, 12:37:49 POSLE PODNE
Koji da promenim
new Float:RandomSpawn[4][3] =
{
    {399.58392, -1531.13086, 32.24300},
    {399.54449, -1534.02527, 32.24300},
    {396.55249, -1530.89282, 32.24300},
    {396.45438, -1533.81836, 32.24300}
};



new Float:RandomSpawn2[3][4]=
{
    {399.58392, -1531.13086, 32.24300},
    {399.54449, -1534.02527, 32.24300},
    {396.45438, -1533.81836, 32.24300}
};

U oba newa stavljas svoje coord... npr umjesto svih tih staviš {233,233,233} to jest {x,y,z} kontas i na jednoj npr stavis {233
Na drugoj 234 na trećoj 235
A ovo dal da menjam svi kodovi isti sem na zadnja 2
396.45438, -1533.81836, 32.24300

Respect to: Muma, King2, Harexe, kockicaa, LoOdak, Basovski, Bosnjo, Amain, Kasperzi, Faris, Andro., Edo_Castallano.


Big Respect to: LoOdaK

Nadji u skripti gfloatove za spawn i promeni svojim kordinatam postojece koordinate
{ 'HTML, PHP, CSS, JAVASCRIPT, PAWN, C#' }

while(alive) code;