SA-MP Forums Archive
TP into intenior - 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)
+--- Thread: TP into intenior (/showthread.php?tid=279307)



TP into intenior - Chris_Morrison - 26.08.2011

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!


Re: TP into intenior - =WoR=G4M3Ov3r - 26.08.2011

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



Re: TP into intenior - Chris_Morrison - 26.08.2011

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


Re: TP into intenior - Kingunit - 26.08.2011

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;
}



Re: TP into intenior - Chris_Morrison - 26.08.2011

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


Re: TP into intenior - =WoR=G4M3Ov3r - 26.08.2011

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.


Re: TP into intenior - Chris_Morrison - 26.08.2011

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


Re: TP into intenior - =WoR=G4M3Ov3r - 26.08.2011

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




Re: TP into intenior - Kingunit - 26.08.2011

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.


Re: TP into intenior - jameskmonger - 26.08.2011

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