This spawns me in Blueberry. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: This spawns me in Blueberry. (
/showthread.php?tid=404689)
This spawns me in Blueberry. -
JoelR - 04.01.2013
pawn Код:
if(Player[playerid][FacSpawn] == 1)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], Factions[Player[playerid][Faction]][fSpawnPosX][1], Factions[Player[playerid][Faction]][fSpawnPosY][1], Factions[Player[playerid][Faction]][fSpawnPosZ][1], Factions[Player[playerid][Faction]][fSpawnPosA][1], 0, 0, 0, 0, 0, 0);
SetPlayerInterior(playerid, Factions[Player[playerid][Faction]][fSpawnInt][1]);
SetPlayerVirtualWorld(playerid, Factions[Player[playerid][Faction]][fSpawnWorld][1]);
}
else if(Player[playerid][FacSpawn] == 2)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], Factions[Player[playerid][Faction]][fSpawnPosX][2], Factions[Player[playerid][Faction]][fSpawnPosY][2], Factions[Player[playerid][Faction]][fSpawnPosZ][2], Factions[Player[playerid][Faction]][fSpawnPosA][2], 0, 0, 0, 0, 0, 0);
SetPlayerInterior(playerid, Factions[Player[playerid][Faction]][fSpawnInt][2]);
SetPlayerVirtualWorld(playerid, Factions[Player[playerid][Faction]][fSpawnWorld][2]);
}
else if(Player[playerid][FacSpawn] == 3)
{
SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], Factions[Player[playerid][Faction]][fSpawnPosX][3], Factions[Player[playerid][Faction]][fSpawnPosY][3], Factions[Player[playerid][Faction]][fSpawnPosZ][3], Factions[Player[playerid][Faction]][fSpawnPosA][3], 0, 0, 0, 0, 0, 0);
SetPlayerInterior(playerid, Factions[Player[playerid][Faction]][fSpawnInt][3]);
SetPlayerVirtualWorld(playerid, Factions[Player[playerid][Faction]][fSpawnWorld][3]);
}
As the title says, it spawns me in Blueberry. The factions are loaded correctly, I just don't know why it's doing that.
Thanks
Re: This spawns me in Blueberry. -
Racer99 - 04.01.2013
You set the spawn location on 0, 0, 0, 0, 0, 0.
Which is in:
Код:
SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], Factions[Player[playerid][Faction]][fSpawnPosX][1], Factions[Player[playerid][Faction]][fSpawnPosY][1], Factions[Player[playerid][Faction]][fSpawnPosZ][1], Factions[Player[playerid][Faction]][fSpawnPosA][1], 0, 0, 0, 0, 0, 0);
Your need to change the 0's to the location you want the player to spawn after getting his faction clothes.
Re: This spawns me in Blueberry. -
JoelR - 04.01.2013
They are the weapons..
Re: This spawns me in Blueberry. -
JoelR - 04.01.2013
Anyone?