{{{Please Help!!}}}
#1

Код:
etPlayerInterior(playerid,14);
	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
	SetPlayerFacingAngle(playerid, 270.0);
	SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
To my script for the spawn i wanted it to be in Cj's Room. Okay so That Worked Fine. But now I shows Nothing When i spawn im Saying its like a Blank World Of Some Sort. Please Help
Reply
#2

You put the wrong interior ID.
pawn Код:
SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,2496.65,-1696.55,1014.74);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,2496.65,-1696.55,1014.74);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
Reply
#3

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
You put the wrong interior ID.
pawn Код:
SetPlayerInterior(playerid,3);
    SetPlayerPos(playerid,2496.65,-1696.55,1014.74);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,2496.65,-1696.55,1014.74);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
It Didnt Help Man
Reply
#4

Callback OnPlayerSpawn:
Keep the Other Stuff you made above the same.

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid,0);
    return 1;
}
Reply
#5

Quote:
Originally Posted by dr.pepper
Посмотреть сообщение
Callback OnPlayerSpawn:
Keep the Other Stuff you made above the same.

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid,0);
    return 1;
}
Great Thanks That Worked But Now it Dosnt Let Me Pick a Character Nor Spawn
Reply
#6

Do you have AddPlayerClass on OnGameModeInIt?

https://sampwiki.blast.hk/wiki/AddPlayerClass


pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // Classes
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // Classes
    return 1;
}
Reply
#7

Quote:
Originally Posted by dr.pepper
Посмотреть сообщение
Do you have AddPlayerClass on OnGameModeInIt?

https://sampwiki.blast.hk/wiki/AddPlayerClass


pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // Classes
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // Classes
    return 1;
}
Of Course I do

Код:
AddPlayerClass(63,1087.4453,-924.3555,43.3906,184.1402,0,0,0,0,0,0); // Prostitute1
	AddPlayerClass(266,1568.5076,-1691.5100,5.8906,182.6821,24,200,25,100,3,1); // Spawn Officer pulaski
	AddPlayerClass(267,1572.1798,-1691.3918,5.8906,176.2471,24,200,25,100,3,1); // Officer Hernandez
	AddPlayerClass(270,2527.2998,-1665.0039,15.1669,96.5309,0,0,24,100,25,100); // groovestreet 7
	AddPlayerClass(271,2460.6169,-1687.5531,13.5336,271.9992,0,0,24,100,25,100); // Groovestreet 8
	AddPlayerClass(269,2483.1467,-1689.2684,13.5139,3.6503,25,100,24,100,25,100); // Groovestreet Smoke
	AddPlayerClass(0,2495.3301,-1687.5093,13.5158,360.0000,25,100,24,100,25,100); // Groovestreet CJ
	AddPlayerClass(102,2290.1616,-1528.1307,26.8750,357.8344,0,0,24,100,25,100); // BallasGangMember 1
	AddPlayerClass(103,2297.9976,-1506.8126,26.8449,9.2828,0,0,24,100,25,100); // BallasTwo
	AddPlayerClass(104,2299.1497,-1494.3140,23.4154,9.2828,0,0,24,100,25,100); // Ballas 4
Reply
#8

Try this out:

pawn Код:
SetupPlayerForClassSelection(playerid)
{
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}

public OnPlayerRequestClass(playerid, classid)
{
    SetupPlayerForClassSelection(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)