[Tutorial] Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands]
#19

I no longer need help, I've solved the problem like this:

public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp(cmdtext, "/enterb", true) ==0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1298.2000,-798.5759,84.1406))
{
SetPlayerPos(playerid, 1299.14,-794.77,1084.00);//mansгo entrar
SetPlayerInterior(playerid, 5);
return 1;
}
}

if(strcmp(cmdtext, "/exitb", true) ==0)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1299.14,-794.77,1084.00))
{
SetPlayerPos(playerid, 1298.2000,-798.5759,84.1406);//mansгo sair
SetPlayerInterior(playerid, 0);
return 1;
}
}
return 0;
}

It probably wasn't working well currently because this script wasn't made for this version of samp, but is well made and it doesn't need to be much changed and the changes are easy to make, I've started scripting about 3 to 4 weeks ago (I'm a beginner) and it took me shortly to solve the problem. It's a great script, It helped me a lot creating entrances for places in the game. Thanks
Reply


Messages In This Thread
Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by zDevon - 31.03.2012, 02:32
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by Luis- - 31.03.2012, 02:38
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by shayan122 - 05.07.2012, 18:21
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by Bug. - 13.09.2012, 13:12
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by xMCx - 13.09.2012, 15:35
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by Bug. - 24.09.2012, 22:19
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by zDevon - 24.09.2012, 22:44
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by Shane_Kingston - 30.09.2012, 03:37
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by x96664 - 26.11.2012, 18:34
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by Red_Dragon. - 26.11.2012, 18:53
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by Bug. - 27.11.2012, 15:26
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by Red_Dragon. - 27.11.2012, 17:34
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by Socan - 27.11.2012, 18:36
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by atiqfajar - 12.12.2012, 11:24
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by zDevon - 12.12.2012, 13:09
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by SilencedPistol - 16.02.2013, 04:59
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by Toxik - 30.06.2014, 08:26
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by fullaninho - 25.06.2015, 23:30
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by fullaninho - 26.06.2015, 00:02
Re: Simple Entry and Exit Points [Adding icons + Creating /enter and /exit commands] - by AndreiWow - 18.07.2015, 21:32

Forum Jump:


Users browsing this thread: 3 Guest(s)