TP into intenior
#1

Hi
my mod /enter command is strange i dont know how to create new enter
i just want to do it:
If the player will type /enter in this postion:
2795.4570,-1619.4171,10.9219
So he will TP to:238.7107,138.9185,1003.0234
i know how to set the int but i dont sucess in this GM to create new Teleport
Thanks!
Reply
#2

PHP код:
SetPlayerPos(playerid,2795.4570,-1619.4171,10.9219
Reply
#3

it's will TP him to the wrong location and what about playertopoint?give me the full please
Reply
#4

Try something like this:
pawn Код:
CMD:enter(playerid, params[])
{
    if( IsPlayerInRangeOfPoint( playerid, 2795.4570,-1619.4171,10.9219, 0.00 ) )
    {
    SetPlayerPos(playerid,238.7107,138.9185,1003.0234)  
    }
    return 1;
}
Reply
#5

Lol i type /enter and it's TP me to the same location what the fuck?
Reply
#6

PHP код:
CMD:enter(playeridparams[])
{
    if(
IsPlayerInRangeOfPoint(playerid2795.4570,-1619.4171,10.92190.00))
    {
    
SetPlayerPos(playerid,238.7107,138.9185,1003.0234)  
    }
    return 
1;

Try this, if it doesn't work, you got a prob with your script.

EDIT : Too late.
Reply
#7

error
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26565) : error 017: undefined symbol "enter"
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26575) : warning 225: unreachable code
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26565) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
it's Mega RP GameMod
Reply
#8

Quote:
Originally Posted by Chris_Morrison
Посмотреть сообщение
error
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26565) : error 017: undefined symbol "enter"
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26575) : warning 225: unreachable code
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26565) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
it's Mega RP GameMod
are you using Strcmp or ZCMD ?

If Strcmp :

PHP код:
 if(strcmp(cmd"/enter"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
               if(
IsPlayerInRangeOfPoint(playerid2795.4570,-1619.4171,10.92190.00)) 
                             { 
                                
SetPlayerPos(playerid,238.7107,138.9185,1003.0234)   
                                } 
                                return 
1

Reply
#9

Quote:
Originally Posted by G4M3Ov3r
Посмотреть сообщение
PHP код:
CMD:enter(playeridparams[])
{
    if(
IsPlayerInRangeOfPoint(playerid2795.4570,-1619.4171,10.92190.00))
    {
    
SetPlayerPos(playerid,238.7107,138.9185,1003.0234)  
    }
    return 
1;

Try this, if it doesn't work, you got a prob with your script.
Dude, you just copied my code man ...
Quote:
Originally Posted by Chris_Morrison
Посмотреть сообщение
error
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26565) : error 017: undefined symbol "enter"
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26575) : warning 225: unreachable code
C:\Program Files\San Andreas\сшбш\gamemodes\M-RP.pwn(26565) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
it's Mega RP GameMod
Still ZCMD.
Reply
#10

Quote:
Originally Posted by G4M3Ov3r
Посмотреть сообщение
PHP код:
SetPlayerPos(playerid,2795.4570,-1619.4171,10.9219
Do you ever read?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)