How do i make a /enter cmd here
#1

how do i make a enter command from here
-1640.6742,483.6991,105.8561
to here
-2454.7161,30.6250,141.5297

i have looked for some tutorials but i cant get to grips with them
Reply
#2

Use the proximity comand
Reply
#3

Whats that
Reply
#4

I cant remember i think it goes if isplayerclosetopoint(x,y,z) ****** it
Reply
#5

pawn Код:
public OnPlayerCommandText(...)
{
    if(strcmp(cmd, "/enter", true) == 0)
    {
        IsPlayerInRangeOfPoint(playerid,5.0,1640.6742,483.6991,105.8561);
        {
                SetPlayerPos(playerid,2454.7161,30.6250,141.5297);
                }
         return 1;
        }
return 1;
}
Please,see the Beginner Tutorials
Reply
#6

I have but i dont understand it all and btw is that all you need meaning can i use that for a filter script
Reply
#7

Quote:
Originally Posted by SkizzoTrick
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(...)
{
    if(strcmp(cmd, "/enter", true) == 0)
    {
        IsPlayerInRangeOfPoint(playerid,5.0,1640.6742,483.6991,105.8561);
        {
                SetPlayerPos(playerid,2454.7161,30.6250,141.5297);
                }
         return 1;
        }
return 1;
}
Please,see the Beginner Tutorials
Agreed
Reply
#8

Yes,you can use it where ever you want
Reply
#9

So if i copy and paste that into pawn.exe and save it should it work
Reply
#10

Quote:
Originally Posted by Jack-
Посмотреть сообщение
So if i copy and paste that into pawn.exe and save it should it work
You need to place it under OnPlayerCommandText
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)