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;
}
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;
}