SA-MP Forums Archive
what 2 exit ? helpppp - 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: what 2 exit ? helpppp (/showthread.php?tid=465546)



what 2 exit ? helpppp - par30 - 22.09.2013

what 2 exit ?



public OnGameModeInit()
{
DisableInteriorEnterExits();

CreateEnterExit(0, -1912.5909, 827.6176, 35.6219, 364.5331, -73.8326, 1001.4423, 250, 10, 0, "");//pizza1
CreateEnterExit(0, 363.4846, -74.8055, 1001.4431, -1911.0651, 829.3088, 35.6219, 0, 0, 0, "");// pizza1
------------------------------
CreateEnterExit(0, -2337.2708, -166.7603, 35.4920, 364.5331, -73.8326, 1001.4423, 250, 10, 0, "");//pizza2
CreateEnterExit(0, 362.7203, -75.4065, 1001.4423 , -2335.5352, -166.9128, 35.4920 , 270, 0, 0, "");//pizza2


Re: what 2 exit ? helpppp - MBilal - 22.09.2013

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
//This for Entrance
if IsPlayerInRangeOfPoint(playerid, 1.0, -1912.5909, 827.6176, 35.6219) *then// for Entrance
{
SetPlayerPos(playerid, 364.5331, -73.8326, 1001.4423);
}
//Try this For Exit
if IsPlayerInRangeOfPoint(playerid, 1.0,364.5331, -73.8326, 1001.4423) *then// For Exit
{
SetPlayerPos(playerid, -1912.5909, 827.6176, 35.6219);
}
return 1;
}
and Add use Static pickup on gamemodeint
AddStaticPickup(1318, 1, -1912.5909, 827.6176, 35.6219,-1);//Grove Entrance
AddStaticPickup(1318, 1,364.5331, -73.8326, 1001.4423, -1);//Grove Exit
Try it i didnt check it


Re: what 2 exit ? helpppp - par30 - 22.09.2013

how to add 2 point


Re: what 2 exit ? helpppp - DanishHaq - 22.09.2013

Put them both in a different Virtual World.


Re: what 2 exit ? helpppp - par30 - 22.09.2013

Quote:

Put them both in a different Virtual World.

i intend Each two at one shop Embed


Re: what 2 exit ? helpppp - DanishHaq - 22.09.2013

Quote:
Originally Posted by par30
Посмотреть сообщение
i intend Each two at one shop Embed
If you intended it, then what's the problem? Lol. I intend each two at one shop < pretty much means that you wanted both in the same shop, which you have done. Embed, what do you mean by that? Leave ****** translate and just tell us normally.