how to make entrance ?
#1

how to make entrance ?
LSPD
24/7
Cityhall
ammu
...
Reply
#2

What do you mean?
Reply
#3

You just have to teleport player when he enters command (/enter?).

Something like:
pawn Код:
if (strcmp("/enter", cmdtext, true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, Float:R, Float:X, Float:Y, Float:Y))
        {
            SetPlayerPos(playerid, Float:SomeX, Float:SomeY, Float:someZ);
        }
        return 1;
    }
Reply
#4

i don't understand you !
Reply
#5

i need help please
Reply
#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
#7

is there FS xreate enterance , i don't know how to script
Reply
#8

Quote:
Originally Posted by RealMan2
Посмотреть сообщение
is there FS xreate enterance , i don't know how to script
Then learn to.
https://sampwiki.blast.hk/wiki/Category:..._Documentation
Reply
#9

Quote:
Originally Posted by RealMan2
Посмотреть сообщение
is there FS xreate enterance , i don't know how to script
:facepalm:
Reply
#10

i can't I need now !!!!!! :3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)