Help with /enter and /exit command
#1

I want to make /enter and /exit command, but i'm very confused.. can you guys help me with an example? I use ZCMD
Reply
#2

Enter-exit command to where?
Reply
#3

Zcmd Commands are made like this:
Код:
CMD:enter(playerid, params[])
{
        //add code here
	return 1;
}
On the line
Quote:

Add code here

you have to add SetPlayerPos(playerid, 0.0, 0.0, 3.0);with your own Xyz position
If you think these are Alien words and you do 't understand anything then send me a private message and I will help you
Reply
#4

Oh so I have to determine the coordinates first? Do all coordinates have to be made /enter and /exit commands first one by one?
Reply
#5

Quote:
Originally Posted by AlfaSufaIndo
Посмотреть сообщение
Oh so I have to determine the coordinates first? Do all coordinates have to be made /enter and /exit commands first one by one?
Yes,Do you know how to find the position of a place?
Reply
#6

By typing the /save command somewhere
Reply
#7

Quote:
Originally Posted by AlfaSufaIndo
Посмотреть сообщение
By typing the /save command somewhere
Yes after you find the position go to SetPlayerPos(playerid, 0.0, 0.0, 3.0); and replace the xyz with your own position In the savedpositions notes it will be AddPlayerClass and some numbers then paste the numbers in the setplayerpos
Reply
#8

in the end it will be something like this

Код:
CMD:enter(playerid, params[])
{
        SetPlayerPos(playerid,blablabla);
	return 1;
}
Reply
#9

How to group all pickup positions into one variable?
Is this the right way?
PHP код:
new    EntrancePickups 
{
    
CreatePickup(modeltypeFloat:XFloat:YFloat:Zvirtualworld 0)
    
CreatePickup(modeltypeFloat:XFloat:YFloat:Zvirtualworld 0)
    
CreatePickup(modeltypeFloat:XFloat:YFloat:Zvirtualworld 0)

Reply
#10

So I want the /enter command can only be used if it is in the entrance pickup
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)