Problema House Spawn
#9

Uite daca pui tot ce ai in FS sa le copiezi in GM si la functia
Код:
public SetPlayerSpawn(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	    if(PlayerInfo[playerid][pTut] == 0)
	    {
			gOoc[playerid] = 1; gHSAY[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; gFamAll[playerid] = 1; gRadio[playerid] = 1; gDepartments[playerid] = 1;
			TogglePlayerControllable(playerid, 0);
			RegistrationStep[playerid] = 1;
			SendClientMessage(playerid, COLOR_WHITE, "Bine ati venit pe Bla bla bla Server, va rugam completati informatiile pentru a continua");
			SendClientMessage(playerid, COLOR_RED, "Esti Barbat sau Femeie ? (Scrieti in chat ( ex : Barbat)");
	    }
		new rand;
//      new house = PlayerInfo[playerid][pPhousekey];
		if(PlayerPaintballing[playerid] != 0)
		{
		    ResetPlayerWeapons(playerid);
		    rand = random(sizeof(PaintballSpawns));
			AC_BS_SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
		    return 1;
		}
		if(PlayerInfo[playerid][pJailed] == 1)
		{
            SetPlayerWantedLevel(playerid, 0);
			AC_BS_SetPlayerInterior(playerid, 6);
			AC_BS_SetPlayerPos(playerid,264.4472,86.6204,1001.0391);
			SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail");
			return 1;
		}
		if(PlayerInfo[playerid][pJailed] == 2)
		{
            SetPlayerWantedLevel(playerid, 0);
			AC_BS_SetPlayerInterior(playerid,17);
			AC_BS_SetPlayerPos(playerid,-959.5732,1955.2191,9.0000);
			SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Prison Sentence, back to Prison");
			return 1;
		}
		if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
		{
		    new string[256];
		    new cut = deathcost;
			//PlayerInfo[playerid][pLevel]*deathcost;
			AC_BS_GivePlayerMoney(playerid, -cut);
			format(string, sizeof(string), "{FF8282}Doctor: {FFFFFF}Factura ta medicala a costat {FF8282}%d${FFFFFF}, O zi Buna!", cut);
			SendClientMessage(playerid, COLOR_WHITE, string);
			MedicBill[playerid] = 0;
			MedicTime[playerid] = 0;
			NeedMedicTime[playerid] = 0;
		}
adaugi
Код:
new HouseID;
	APlayerData[playerid][CurrentHouse] = 0;
	if (SpawnAtHouse == true)
	{
		HouseID = APlayerData[playerid][Houses][0];
		if (HouseID != 0)
		{
			SetPlayerPos(playerid, AHouseData[HouseID][HouseX], AHouseData[HouseID][HouseY], AHouseData[HouseID][HouseZ]);
		}
	}
atunci o sa-ti functioneze sistemul. Momentan nu functioneaza pentru ca ai SetPlayerSpawn(playerid) in Functia OnPlayerSpawn din GM si nu-l poti scoate pt ca asa e conceput gf-ul de cacat .....
Reply


Messages In This Thread
Problema House Spawn - by Smoky94 - 30.06.2014, 11:16
Re: Problema House Spawn - by jamal1992 - 30.06.2014, 11:36
Re: Problema House Spawn - by Smoky94 - 30.06.2014, 11:40
Re: Problema House Spawn - by jamal1992 - 30.06.2014, 12:01
Re: Problema House Spawn - by Smoky94 - 30.06.2014, 12:11
Re: Problema House Spawn - by jamal1992 - 30.06.2014, 12:19
Re: Problema House Spawn - by Smoky94 - 30.06.2014, 12:22
Re: Problema House Spawn - by Smoky94 - 30.06.2014, 12:30
Re: Problema House Spawn - by jamal1992 - 30.06.2014, 12:55
Re: Problema House Spawn - by Smoky94 - 30.06.2014, 12:59

Forum Jump:


Users browsing this thread: 1 Guest(s)