Help for SpawnPlaces -
BGMike - 21.07.2011
Hello guys, I need help for Spawn Places
I want to put 7 Spawn Places for CIVILIAN
Here is the code:
Код:
new Float:CivilSP[7][4] = {
{387.1446,-2028.5112,7.8359,91.1808},//Spawn1
{2203.6665,-1152.9113,25.7510,267.6033},//Spawn2
{1026.6526,-1344.2133,13.7266,1.9277},//Spawn3
{2003.3243,1545.1816,13.5859,269.9087},//Spawn4
{2097.4141,2492.1895,14.8390,178.0939}, //Spawn5
{-2758.0659,375.9741,4.3336,270.3599},//Spawn6
{-2031.4044,161.5761,28.8359,272.1362} //Spawn7
};
But only the first five places working.The Last two doesn't work.
So please help me, what to do ?
Re: Help for SpawnPlaces -
park4bmx - 21.07.2011
can i see the code when u use the coordinates to spawn the player ?
Re: Help for SpawnPlaces -
BGMike - 21.07.2011
I allready post the code, are you doesn't see the code ?
Re: Help for SpawnPlaces -
park4bmx - 21.07.2011
Not that code lol
The code that is like this
SetPlayerPost(playerid,.......etc
Re: Help for SpawnPlaces -
sansko - 21.07.2011
pawn Код:
new Float:CivilSP[7][4] = {
{387.1446,-2028.5112,7.8359,91.1808},//Spawn1
{2203.6665,-1152.9113,25.7510,267.6033},//Spawn2
{1026.6526,-1344.2133,13.7266,1.9277},//Spawn3
{2003.3243,1545.1816,13.5859,269.9087},//Spawn4
{2097.4141,2492.1895,14.8390,178.0939}, //Spawn5
{-2758.0659,375.9741,4.3336,270.3599},//Spawn6
{-2031.4044,161.5761,28.8359,272.1362}, //Spawn7 "," added
};
Re: Help for SpawnPlaces -
MadeMan - 21.07.2011
Show all the places in your script that have CivilSP
Re: Help for SpawnPlaces -
BGMike - 22.07.2011
Here is the code
Код:
case TEAM_CIVILIAN:
{
SetPlayerPos(playerid,CivilSP[rand][0],CivilSP[rand][1],CivilSP[rand][2]);
SetPlayerFacingAngle(playerid,CivilSP[rand][3]);
SetCameraBehindPlayer(playerid);
}
Re: Help for SpawnPlaces -
MadeMan - 22.07.2011
pawn Код:
case TEAM_CIVILIAN:
{
rand = random(sizeof(CivilSP));
SetPlayerPos(playerid,CivilSP[rand][0],CivilSP[rand][1],CivilSP[rand][2]);
SetPlayerFacingAngle(playerid,CivilSP[rand][3]);
SetCameraBehindPlayer(playerid);
}