another help
#1

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.
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

also, how to get the Y Postition ,etc
Reply
#5

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.
Reply
#6

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.
Reply
#7

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); //
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)