SA-MP Forums Archive
Quick interior help, thanks. ((Urgent)) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Quick interior help, thanks. ((Urgent)) (/showthread.php?tid=87600)



Quick interior help, thanks. ((Urgent)) - widowmkr - 21.07.2009

hey, im scripting a faction and all is going smooth, but since im new to scripting, i cant work out where to copy and paste the certain stuff. Heres what i wish you guys to do

Interior Cords = 2350.339843,-1181.649902,1027.976562
Player the person should be standing when they get tele'd ((PlayerToPointStripped) = 109,2808.0303,-1175.9161,25.3815,179.0963,0,0,0,0,0,0

i wish you guys to add these cords into my current one, ((Current one fails)), Thanks

Код:
	}
	else if(PlayerToPointStripped(1, playerid,1123.0614,-2037.0490,69.8937, cx,cy,cz))
	{//MS-13 enter
		GameTextForPlayer(playerid, "~w~MS 13 ~n~gang hq", 5000, 1);
		SetPlayerInterior(playerid, 1);
		SetPlayerPos(playerid,2173.3374,1617.3943,999.9766); // Ms-13 Gang
		PlayerInfo[playerid][pInt] = 1;
	}



Re: Quick interior help, thanks. ((Urgent)) - widowmkr - 21.07.2009

Need help.


Re: Quick interior help, thanks. ((Urgent)) - [top_Shoter] - 21.07.2009

pawn Код:
}
    else if(PlayerToPointStripped(1, playerid,1123.0614,-2037.0490,69.8937, cx,cy,cz))
    {//MS-13 enter
        GameTextForPlayer(playerid, "~w~MS 13 ~n~gang hq", 5000, 1);
        SetPlayerInterior(playerid, 1);
        SetPlayerPos(playerid,2350.339843,-1181.649902,1027.976562); // Ms-13 Gang
        PlayerInfo[playerid][pInt] = 1;
    }
make sure it set right int for player. other wise screen will be blue.


Re: Quick interior help, thanks. ((Urgent)) - widowmkr - 21.07.2009

Quote:
Originally Posted by Top_Shoter
pawn Код:
}
    else if(PlayerToPointStripped(1, playerid,1123.0614,-2037.0490,69.8937, cx,cy,cz))
    {//MS-13 enter
        GameTextForPlayer(playerid, "~w~MS 13 ~n~gang hq", 5000, 1);
        SetPlayerInterior(playerid, 1);
        SetPlayerPos(playerid,2350.339843,-1181.649902,1027.976562); // Ms-13 Gang
        PlayerInfo[playerid][pInt] = 1;
    }
make sure it set right int for player. other wise screen will be blue.
this didnt work =[


Re: Quick interior help, thanks. ((Urgent)) - [top_Shoter] - 21.07.2009

thats the code you wanted in there did you make it set your right int if not it will take you there but in wrong int so you wont be able to see nothing.


Re: Quick interior help, thanks. ((Urgent)) - widowmkr - 21.07.2009

Quote:
Originally Posted by Top_Shoter
thats the code you wanted in there did you make it set your right int if not it will take you there but in wrong int so you wont be able to see nothing.
Nah, the person doesnt even get teleported.


Re: Quick interior help, thanks. ((Urgent)) - [top_Shoter] - 21.07.2009

have you made it it so it teleport you from the right place. are you goin to the right place, if so try this


pawn Код:
}
else if(PlayerToPointStripped(10, playerid,1123.0614,-2037.0490,69.8937, cx,cy,cz))
{//MS-13 enter
GameTextForPlayer(playerid, "~w~MS 13 ~n~gang hq", 5000, 1);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,2350.339843,-1181.649902,1027.976562); // Ms-13 Gang
PlayerInfo[playerid][pInt] = 1;
}



Re: Quick interior help, thanks. ((Urgent)) - widowmkr - 21.07.2009

Quote:
Originally Posted by Top_Shoter
have you made it it so it teleport you from the right place. are you goin to the right place, if so try this


pawn Код:
}
else if(PlayerToPointStripped(10, playerid,1123.0614,-2037.0490,69.8937, cx,cy,cz))
{//MS-13 enter
GameTextForPlayer(playerid, "~w~MS 13 ~n~gang hq", 5000, 1);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,2350.339843,-1181.649902,1027.976562); // Ms-13 Gang
PlayerInfo[playerid][pInt] = 1;
}
still bugged ill get the new cords again, sec


Re: Quick interior help, thanks. ((Urgent)) - [top_Shoter] - 21.07.2009

Yeah im on my laptop n its not installed erm did you /save were you want to be for it to teleport you??


Re: Quick interior help, thanks. ((Urgent)) - widowmkr - 21.07.2009

Quote:
Originally Posted by Top_Shoter
Yeah im on my laptop n its not installed erm did you /save were you want to be for it to teleport you??
yup, heres a new /save from the positon i want to be teleported from
AddPlayerClass(109,2808.4053,-1176.8412,25.3655,18.8866,0,0,0,0,0,0); //

i've added a AddStatic to btw

a I