Can Anyone Help Me - 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)
+--- Thread: Can Anyone Help Me (
/showthread.php?tid=618132)
Can Anyone Help Me -
CarRamper - 01.10.2016
Код:
on top of script
new BurgerShot3Enter;
new BurgerShot3Exit;
Under public OnGameModeInit()
BurgerShot3Enter = CreatePickup(19198,23,-2336.8687,-166.8656,35.5547,0);
BurgerShot3Exit = CreatePickup(19198,23,362.8754,-75.1701,1001.5078,3);
Under public OnPlayerPickUpPickup(playerid, pickupid)
if(pickupid == BurgerShot3Enter)
{
SetPlayerPos(playerid, -2334.8730,-166.8442,35.5547);
SetPlayerFacingAngle(playerid,268.1817);
SetPlayerVirtualWorld(playerid, 3);
SetPlayerInterior(playerid, 10);
SetCameraBehindPlayer(playerid);
}
if(pickupid == BurgerShot3Exit)
{
SetPlayerPos(playerid, 375.962463,-65.816848,1001.507812);
SetPlayerFacingAngle(playerid,265.5476);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
}
But i am having a problem that when i enter the check point i am not able to see the interior
u can see this picture to get what i am talking
[IMG]
![](http://i.imgur.com/kX5pPN8.png)
[/IMG]
Re: Can Anyone Help Me -
Yaa - 01.10.2016
On Enter
Change SetPlayerPos to
SetPlayerPos (playerid, 6.091179, -29.271898, 1003.54943
![Cool](images/smilies/cool.gif)
;
Re: Can Anyone Help Me -
Yaa - 01.10.2016
Quote:
SetPlayerPos ----> 6.091179,-29.271898,1003.549438
|
The Floats x y z
Re: Can Anyone Help Me -
CarRamper - 01.10.2016
Wait Let I Check
Re: Can Anyone Help Me -
Shaheen - 01.10.2016
just use setplayerint int id
Re: Can Anyone Help Me -
ISmokezU - 01.10.2016
Sure the position is even right?