SA-MP Forums Archive
How do i make a /enter cmd here - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How do i make a /enter cmd here (/showthread.php?tid=195451)



How do i make a /enter cmd here - Jack- - 02.12.2010

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


Re: How do i make a /enter cmd here - [JnA]DukeNukem - 02.12.2010

Use the proximity comand


Re: How do i make a /enter cmd here - Jack- - 02.12.2010

Whats that


Re: How do i make a /enter cmd here - [JnA]DukeNukem - 02.12.2010

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


Re: How do i make a /enter cmd here - SkizzoTrick - 02.12.2010

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


Re: How do i make a /enter cmd here - Jack- - 02.12.2010

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


Re: How do i make a /enter cmd here - [JnA]DukeNukem - 02.12.2010

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


Re: How do i make a /enter cmd here - SkizzoTrick - 02.12.2010

Yes,you can use it where ever you want


Re: How do i make a /enter cmd here - Jack- - 02.12.2010

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


Re: How do i make a /enter cmd here - SkizzoTrick - 02.12.2010

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