[POMOC]Kako Promjeniti Spawn

Započeo hood9, Mart 13, 2011, 12:45:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Cyber
Detaljan opis problema:Ovako želio bih promjeniti Spawn u GM a neznam kako
Dio skripte:

Kad se spawnas kucaj /save spawn i probaj naci te koordinate u modu sa CTRL+F ako nemoze onda uzmi pojedinacno i trazi X Y Z npr...
Ovo ti izadje spawn npr:
AddPlayerClass(98,1230.6512,-1381.3033,14.6209,4.1656,0,0,0,0,0,0);
Sad ti uzmes XYZ i trazis po skripti:
1230.6512, -1381.3033, 14.6209
1230.6512,-1381.3033,14.6209
ako tako nemozes naci trazi pojednacno X, Y, Z
1230.6512
-1381.3033
14.6209
I kad nadjes zamenis X sa svojim kordinatama Y takodje Z takodje :D
Ako sta nije jasno pitaj :D


Ovakvih tema na forumu je bilo milion  >:(
Poslednja Izmena: Mart 13, 2011, 12:49:53 POSLE PODNE od eXtreme

Nadjem to ovo kako si napiso AddPlayerClass(Peds
  • ,1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
    i odem F5 sve sve i nece opet se spawnam na Mjestu kojem neželemi

OMG eXtreme vidis da je pocentnik ovako uradi udi u SAMP-DEBUG ( nalazi ti se u san andreas folderu ) kad udes nadi mjesto gdje zesli da se spawnas zatim izgasi san andresa i idi u MyDocuments>>>Gta San Andreas UserFiles>>>SAMP>>>savepositons

i imas ovako nesto

AddPlayerClass(2,1561.631,6163.161,1623.6326,0,0,0,0,0,0);  ( Ovo sam bubno )

I onda u Cyber GameMod i trazi OnGameModInt()

I samo zamjenis ono njgovo AddPlayerClass sa svojim i eto ga imas TUT jedan od Djankaa tamo je sve opisano


Ajde lepo opet i opet POGLEDAJ sta sam napisao moras jos stvari menjati e sad cu ti ja to uraditi ...Sacekaj trenutak

eto sto si glup jel nevidis da sam radio pola toga ali nece NECE da mi spawn promjeni svako pise drugi KOD jbemu gada

Nadji:

new Float:gRandomPlayerSpawns[1][3] = {
{1645.0063,-2286.4316,-1.2031} // sp1
};

Zameni sa:

new Float:gRandomPlayerSpawns[1][3] = {
{X kordinate novog spawna, Y kordinate novog spawna, Z kordinate novog spawna} // sp1
};

Nadji:

if(PlayerInfo[playerid][pOrigin] == 1)
{
    SetPlayerPos(playerid,1645.0063,-2286.4316,-1.2031);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}
else if(PlayerInfo[playerid][pOrigin] == 2)
{
    SetPlayerPos(playerid,1645.0063,-2286.4316,-1.2031);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}
else if(PlayerInfo[playerid][pOrigin] == 3)
{
    SetPlayerPos(playerid,1645.0063,-2286.4316,-1.2031);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}
else if(PlayerInfo[playerid][pOrigin] == 4)
{
    SetPlayerPos(playerid,1645.0063,-2286.4316,-1.2031);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}
else if(PlayerInfo[playerid][pOrigin] == 5)
{
    SetPlayerPos(playerid,1645.0063,-2286.4316,-1.2031);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}

Zameni sa:

if(PlayerInfo[playerid][pOrigin] == 1)
{
    SetPlayerPos(playerid,X kordinate novog spawna, Y kordinate novog spawna, Z kordinate novog spawna);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}
else if(PlayerInfo[playerid][pOrigin] == 2)
{
    SetPlayerPos(playerid,X kordinate novog spawna, Y kordinate novog spawna, Z kordinate novog spawna);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}
else if(PlayerInfo[playerid][pOrigin] == 3)
{
    SetPlayerPos(playerid,X kordinate novog spawna, Y kordinate novog spawna, Z kordinate novog spawna);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}
else if(PlayerInfo[playerid][pOrigin] == 4)
{
    SetPlayerPos(playerid,X kordinate novog spawna, Y kordinate novog spawna, Z kordinate novog spawna);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}
else if(PlayerInfo[playerid][pOrigin] == 5)
{
    SetPlayerPos(playerid,X kordinate novog spawna, Y kordinate novog spawna, Z kordinate novog spawna);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
                hotel(playerid);
}

Nadji:

if( IsPlayerInRangeOfPoint( playerid, 3.0, 2.6336,33.0234,1199.5938 ) ) // ako je  igrac blizu kordinata koje postavite
{
SetPlayerPos( playerid, 1645.0063,-2286.4316,-1.2031 ); // X, Y, Z - gde ce se igrac spawnati u interijer(kordinate interijera)
SetPlayerInterior( playerid, 0 ); // ID interijera
GameTextForPlayer( playerid, "Aerodrum", 3000, 1 ); // Salje igracu nekakvu poruku
return 1;
}

Zameni sa:

if( IsPlayerInRangeOfPoint( playerid, 3.0, 2.6336,33.0234,1199.5938 ) ) // ako je  igrac blizu kordinata koje postavite
{
SetPlayerPos( playerid, X kordinate novog spawna, Y kordinate novog spawna, Z kordinate novog spawna ); // X, Y, Z - gde ce se igrac spawnati u interijer(kordinate interijera)
SetPlayerInterior( playerid, 0 ); // ID interijera
GameTextForPlayer( playerid, "Aerodrum", 3000, 1 ); // Salje igracu nekakvu poruku
return 1;
}



I to je to :D