Help for SpawnPlaces
#1

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 ?
Reply
#2

can i see the code when u use the coordinates to spawn the player ?
Reply
#3

I allready post the code, are you doesn't see the code ?
Reply
#4

Not that code lol
The code that is like this
SetPlayerPost(playerid,.......etc
Reply
#5

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
};
Reply
#6

Show all the places in your script that have CivilSP
Reply
#7

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);
           }
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)