[ajuda] criar um teleporte
#1

como fasso pra criar um teleporte so de ida








o cara passa e vai pra um local so isso
Reply
#2

Estude Pawn para SAMP 1є, vocк faz muitas perguntas e me parece que vocк naum estudou o pawn e estб fazendo um servidor de RPG, entгo estude 1є
Reply
#3

pawn Код:
new pickup;

pickup = CreatePickup...

public OnPlayerPickUpPickup(playerid,pickupid)
{
    if (pickupid == pickup) {
        SetPlayerPos(playerid,x,y,z);
    }
    return true;
}
Reply
#4

new pickup; ( inicio )


pickupp = CreatePickup( 1242, 2, -2394.42, 1772.57, 3.36 ); (creat dynamic objetes)


public OnPlayerPickUpPickup(playerid,pickupid)

{
if (pickupid == pickupp) {
SetPlayerPos(playerid,x, ja coloquei as cordenadas ,z);
}
return true;
}


Quote:

C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(17104) : error 055: start of function body without function header
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(17105) : error 010: invalid function or declaration
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(1710 : error 010: invalid function or declaration
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(31224) : warning 202: number of arguments does not match definition
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6566) : warning 204: symbol is assigned a value that is never used: "pickup"

Reply
#5

new pickupp; ( inicio )


pickupp = CreatePickup( 1242, 2, -2394.42, 1772.57, 3.36 ); (creat dynamic objetes)


public OnPlayerPickUpPickup(playerid,pickupid)

{
if (pickupid == pickupp) {
SetPlayerPos(playerid,x, ja coloquei as cordenadas ,z);
}
return true;
}


Quote:

C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(17104) : error 055: start of function body without function header
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(17105) : error 010: invalid function or declaration
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(1710 : error 010: invalid function or declaration
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(31224) : warning 202: number of arguments does not match definition
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6566) : warning 204: symbol is assigned a value that is never used: "pickupp"

Reply
#6

pelo oq u vi vc usa o GM do BSL
em
pawn Код:
public CustomPickups()
add
pawn Код:
else if (PlayerToPoint(1.0, i, 1352.4741,-1757.7406,13.5078)) //cooredenadas de onde o player tem q estar para ser teleportado
            {
               SetPlayerPos(i, -30.946699,-89.609596,1003.54687); // coordenadas de par onde ele vai
               SetPlayerFacingAngle(i, 0.0);
               SetCameraBehindPlayer(i);
               SetPlayerInterior(i, 0); //interior
            }
Reply
#7

eu usava ele mais me dei conta que se usace num ia faser powrra nenhum

tou fasendo meu gm do zero

agora cheguei na faser te por os teleportes
Reply
#8

entao tenta fase do jeito que eu falei
cola isso no final do GM e tenta

pawn Код:
public CustomPickups()
else if (PlayerToPoint(1.0, i, 1352.4741,-1757.7406,13.5078)) //cooredenadas de onde o player tem q estar para ser teleportado
            {
               SetPlayerPos(i, -30.946699,-89.609596,1003.54687); // coordenadas de par onde ele vai
               SetPlayerFacingAngle(i, 0.0);
               SetCameraBehindPlayer(i);
               SetPlayerInterior(i, 0); //interior
            }

dai depois coloca a pickup aparte so pra saberem oque ali tem um teleporte

pawn Код:
AddStaticPickup(IDPICKUP, 1, coordenada X,COORDENADA Y,COORDANADA Z)
Reply
#9

n funciona da erro
Reply
#10

pawn Код:
new shick;
pawn Код:
public OnGameModeInit()
{
 shick = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1); // https://sampwiki.blast.hk/wiki/CreatePickup
 return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid,pickupid)
{
 if (pickupid == shick) return SetPlayerPos(playerid, X, Y, Z); // Mude para suas cordenadas para que ele irб se teleportar.
 return 1;
}
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)