SA-MP Forums Archive
another help - 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: another help (/showthread.php?tid=262082)



another help - danodanodano - 16.06.2011

Can someone give an example to /enter, Example, someone make me command " /enter at all saint, when the player /enter, his interior goes to ID 4," I need example.


Re: another help - Cameltoe - 16.06.2011

pawn Код:
command(enter, playerid, params[])
{
     if(IsPlayerInRange(playerid, 5, 5, X EnterPos, Y EnterPos, Z EnterPos))
     {
          SetPlayerPos(playerid, X ExitPos, Y ExitPos, Z ExitPos);
          SetPlayerInterior(playerid, Interior ID);
     }
     return 1;
}



Re: another help - danodanodano - 16.06.2011

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
pawn Код:
command(enter, playerid, params[])
{
     if(IsPlayerInRange(playerid,[COLOR="Red"] 5, 5, [/COLOR]X EnterPos, Y EnterPos, Z EnterPos))
     {
          SetPlayerPos(playerid, X ExitPos, Y ExitPos, Z ExitPos);
          SetPlayerInterior(playerid, Interior ID);
     }
     return 1;
}
What does this mean, the red numbers.


Re: another help - danodanodano - 16.06.2011

also, how to get the Y Postition ,etc


Re: another help - Cameltoe - 16.06.2011

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
pawn Код:
command(enter, playerid, params[])
{
     if(IsPlayerInRange(playerid, 5, 5, X EnterPos, Y EnterPos, Z EnterPos))
     {
          SetPlayerPos(playerid, X ExitPos, Y ExitPos, Z ExitPos);
          SetPlayerInterior(playerid, Interior ID);
     }
     return 1;
}
Color red? wtf are you on.. ?


Quote:
Originally Posted by danodanodano
Посмотреть сообщение
also, how to get the Y Postition ,etc
You are not allowed to doublepost .. Alos the z,y,z axis of the enter pos is gathered by typing "/save [ Posname ]" ingame.


Respuesta: another help - Alex_Obando - 16.06.2011

Ok, go in-game and do /save, then go to the san andreas user files > saved positions, after that go to the script on the top and paste those coords, (IfIsplayerOnRangePoint, means if you are near that place so in fact that command will make this:

When you type enter and your near that place you'll be teleported.

Just go to the savedpositions and post here the coords and I'll make it for you.


Re: Respuesta: another help - danodanodano - 16.06.2011

Quote:
Originally Posted by Alex_Obando
Посмотреть сообщение
Ok, go in-game and do /save, then go to the san andreas user files > saved positions, after that go to the script on the top and paste those coords, (IfIsplayerOnRangePoint, means if you are near that place so in fact that command will make this:

When you type enter and your near that place you'll be teleported.

Just go to the savedpositions and post here the coords and I'll make it for you.
AddPlayerClass(165,1480.5153,-1768.9490,18.7958,357.9882,0,0,0,0,0,0); //