[Pomoc]U vezi Spawna

Započeo [BM]Aleksa_Smiljanic, Oktobar 17, 2011, 17:07:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Street Stories
Detaljan opis problema: Otiso sam u MTA izmapo novi spawn i sad odem u pawno prebacim mapu i sad trazim Kodinatu a stari spawn da ga promenim za novi i sad milism da sam ga naso promenio sam i kad udjem uradim /gmx i pojavim se unutar A51 moze pomoc
/ // //
Do moje kordinate sam doso tak osto sam in game kuco/save pa sam otiso in mydocuments/grand theft auto. . . /samp /savedpositions.txt);

Dio skripte koji mislim da je ispravan : SetSetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,267,2028.4316,-1404.1998,17.2401,181.6843,0,0,0,0,0,0//My ID
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
Poslednja Izmena: Oktobar 17, 2011, 17:19:51 POSLE PODNE od [BM]Aleksa_Smiljanic

vlado_plavsic

         SetSetPlayerToTeamColor(playerid); 
         rand = random(sizeof(gMedPlayerSpawns)); 
         SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player 
         SetPlayerFacingAngle(playerid, 270.0); 
         SetPlayerInterior(playerid,0); 
         PlayerInfo[playerid][pInt] = 0; 
         return 1; 
      } 
       else 
       { 
         SetPlayerToTeamColor(playerid); 
         SetPlayerPos(playerid,267,[color=red]2028.4316,-1404.1998,17.2401,181.6843[/color],0,0,0,0,0,0 [b][color=green]// Ovo su koordinate koje treba da zamenis sa tvojim[/color][/b]
         SetPlayerFacingAngle(playerid, 0); 
         SetPlayerInterior(playerid,0); 
         PlayerInfo[playerid][pInt] = 0; 
         return 1; 
      }


SetSetPlayerToTeamColor(playerid);  
        rand = random(sizeof(gMedPlayerSpawns));  
        SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player  
        SetPlayerFacingAngle(playerid, 270.0);  
        SetPlayerInterior(playerid,0);  
        PlayerInfo[playerid][pInt] = 0;  
        return 1;  
     }  
      else  
      {  
        SetPlayerToTeamColor(playerid);  
        SetPlayerPos(playerid,267,2028.4316,-1404.1998,17.2401,181.6843,0,0,0,0,0,0//My ID  
        SetPlayerFacingAngle(playerid, 0);  
        SetPlayerInterior(playerid,0);  
        PlayerInfo[playerid][pInt] = 0;  
        return 1;  
     }


Nemos stavit rotaciju u SetPlayerPos... Rotacija ide u SerPlayerFacingAngle, sto znaci da bi ovo trebalo radit:


SetSetPlayerToTeamColor(playerid);  
        rand = random(sizeof(gMedPlayerSpawns));  
        SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player  
        SetPlayerFacingAngle(playerid, 270.0);  
        SetPlayerInterior(playerid,0);  
        PlayerInfo[playerid][pInt] = 0;  
        return 1;  
     }  
      else  
      {  
        SetPlayerToTeamColor(playerid);  
        SetPlayerPos(playerid,267,2028.4316,-1404.1998,17.2401,0,0,0,0,0,0//My ID  
        SetPlayerFacingAngle(playerid, 181.6843);  
        SetPlayerInterior(playerid,0);  
        PlayerInfo[playerid][pInt] = 0;  
        return 1;  
     }
Poslednja Izmena: Oktobar 17, 2011, 23:35:33 POSLE PODNE od dock