PPC_House NOT SPAWN AT HOUSE
#1

HELP ME PLEASE

I've put up a PPC House to gamemode MY
why I can not spawn at home when I've bought a house in place and also I've used /createhouse to make home
please help me ......

ScreenShot







Код:
public OnPlayerSpawn(playerid)
{
    	// Setup local variables
	new HouseID;

	// Reset the HouseID where the player is located
	APlayerData[playerid][CurrentHouse] = 0;

	// If SpawnAtHouse is set to "true", re-position the player at the first house in his list of owned houses
	if (SpawnAtHouse == true)
	{
		// Get the first HouseID in your list of owned houses
		HouseID = APlayerData[playerid][Houses][0];
		// Check if the player has a house in this first slot
		if (HouseID != 1)
		{
			// Re-position the player at the house's coordinates
			SetPlayerPos(playerid, AHouseData[HouseID][HouseX], AHouseData[HouseID][HouseY], AHouseData[HouseID][HouseZ]);
		}
	}
	new Random = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
	SetPlayerInterior(playerid, 0);
	return 1;
}
Reply
#2

I believe you may need to add it so you spawn at the house under OnPlayerSpawn and SetPlayerSpawnInfo
Reply
#3

im not have SetPlayerSpawnInfo
Reply
#4

Noticed this:
Quote:

// If SpawnAtHouse is set to "true"

Have you set it to True at the top?
Reply
#5

Quote:
Originally Posted by acade
Посмотреть сообщение
Noticed this:

Have you set it to True at the top?
yess....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)