SA-MP Forums Archive
[Ajuda] Stock com argumentos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Stock com argumentos (/showthread.php?tid=402195)



Stock com argumentos - AndrePls - 25.12.2012

Quero criar um stock para teleportar o jogador. Porйm quero que esse stock peзa o X Y Z e ANGULO, tipo
Код:
teleportar(playerid, X, Y, Z, A)
Obrigado.


Re: Stock com argumentos - JonathanFeitosa - 25.12.2012

pawn Код:
#define SetarPlayer(%0,%1,%2, %3, %4)  \
        SetPlayerPos(%0, %1, %2, %3), SetPlayerFacingAngle(%0, %4)
pawn Код:
SetarPlayer(playerid, X, Y, Z, ANGULO);



Re: Stock com argumentos - Sky™ - 25.12.2012

pawn Код:
#define Teleport(%0,%1,%2,%3,%4)  SetPlayerPos(%0,%1,%2,%3);\
        SetPlayerFacingAngle(%0,%4)



Teleport(playerid, x,y,z, a);



Re: Stock com argumentos - AndrePls - 25.12.2012

Mais nгo terб sу isso no teleporte, eu irei verificar se o jogador й motorista e etc.


Re: Stock com argumentos - TreePuncher - 25.12.2012

A board portuguesa chegou a esse ponto?


Re: Stock com argumentos - VenoN - 25.12.2012

Quote:
Originally Posted by Jonathan_Feitosa
Посмотреть сообщение
pawn Код:
#define SetarPlayer(%0,%1,%2, %3, %4)  \
        SetPlayerPos(%0, %1, %2, %3), SetPlayerFacingAngle(%0, %4)
pawn Код:
SetarPlayer(playerid, X, Y, Z, ANGULO);
hm...



Quote:
Originally Posted by Sky_.
Посмотреть сообщение
pawn Код:
#define Teleport(%0,%1,%2,%3,%4)  SetPlayerPos(%0,%1,%2,%3);\
        SetPlayerFacingAngle(%0,%4)



Teleport(playerid, x,y,z, a);
os dois n й igual kkk

@topico sу vocк definir o state dele Player_state_driver IsPlayerInVehicle

acho que isso!


Re: Stock com argumentos - AndrePls - 25.12.2012

Quote:
Originally Posted by Jay_McReary
Посмотреть сообщение
A board portuguesa chegou a esse ponto?
Nгo entendi..


Re: Stock com argumentos - VenoN - 25.12.2012

cara olha o que vc pede atй que й uma duvida legal de se responder mais depois olha o que vc fala!

Quote:
Originally Posted by AndrePls
Посмотреть сообщение
Mais nгo terб sу isso no teleporte, eu irei verificar se o jogador й motorista e etc.
se n quer mais nada nй?


Re: Stock com argumentos - zSuYaNw - 25.12.2012

Recomendo vocк rever meu tutorial:
http://forum.sa-mp.com/showthread.ph...16#post2249016


Re: Stock com argumentos - TreePuncher - 25.12.2012

Quote:
Originally Posted by AndrePls
Посмотреть сообщение
Nгo entendi..
Sabia, pois eu te explico:

O prefixo [Ajuda] tem no total(atй agora) 4174 tуpicos, sу de ajudas bobas, como essa.
4174 tуpicos de ajuda em 209 paginas.
O tуpico de Lanзamentos sу tem a metade disso (pelo que eu me lembre nem chega a ser metade).

Sabe o por que disso? Porque gente como vocк nгo esta nem aн pra pesquisar.