how to make entrance ?
#6

Let's assume that player want to enter PD station in LS. So he's stands in front of PD doors and writes a command like /enter. Now, that code I gave you is just an simple example of that enter command.

pawn Код:
if (strcmp("/enter", cmdtext, true) == 0)
This will check did the player wrote /enter command.

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, Float:R, Float:X, Float:Y, Float:Z))
If the command has been called it will check if player is in front of PD.
You should replace Float:R(ange), Float:X, Float:Y and Float:Z with your range and coordinates.

pawn Код:
SetPlayerPos(playerid, Float:SomeX, Float:SomeY, Float:someZ);
And then if the player is in front of a PD it will set his position wherever you want.
Replace Float:SomeX, Float:SomeY, FloatomeZ with your coordinates where you want to put player.
Reply


Messages In This Thread
how to make entrance ? - by RealMan2 - 22.06.2011, 10:53
Re: how to make entrance ? - by Lorenc_ - 22.06.2011, 10:58
Re: how to make entrance ? - by xRyder - 22.06.2011, 11:00
Re : how to make entrance ? - by RealMan2 - 22.06.2011, 11:11
Re : how to make entrance ? - by RealMan2 - 22.06.2011, 11:13
Re: how to make entrance ? - by xRyder - 22.06.2011, 11:20
Re : how to make entrance ? - by RealMan2 - 22.06.2011, 11:28
Re: Re : how to make entrance ? - by Wesley221 - 22.06.2011, 11:44
Re: Re : how to make entrance ? - by PCheriyan007 - 22.06.2011, 11:48
Re : how to make entrance ? - by RealMan2 - 22.06.2011, 14:01

Forum Jump:


Users browsing this thread: 1 Guest(s)