[Include] Easy_Teleport - 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)
+----- Forum: Lançamentos/Releases (
https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [Include] Easy_Teleport (
/showthread.php?tid=407903)
Easy_Teleport -
SeV_ - 15.01.2013
Olб Pessoal Fiz Esta sisteminha Simples Para Fazer Teleportes Rapidamente:
DOWNLOAD
Sistemas mais avancados й com os espertinhos aki em baixo \/ \/..
Re: Easy_Teleport -
tonisantolia - 15.01.2013
Use Pastebin para upar..
@script
pawn Код:
forward ETeleport(playerid,Float:X,Float:Y,Float:Z,texttele[]);
public ETeleport(playerid, Float:X,Float:Y,Float:Z,texttele[]){
new nome[MAX_PLAYER_NAME],string[200];GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FFFEFE} %s Foi para{1C13E7} %s", nome,texttele);
SendClientMessageToAll(0xFFFFFFFF, string);
SetPlayerInterior(playerid,0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z+3);
}else{
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid,X,Y,Z);
}
SetCameraBehindPlayer(playerid);
return 1;}
No Coments again..
Re: Easy_Teleport -
AmericanStyle'™ - 15.01.2013
Code:
pawn Код:
//Include by Met4L/System_oFF
#include <a_samp>
//como fazer (EXEMPLO)
//ETeleport(playerid,-2888.677978,1423.499023,-36.533981,"TESTE ( /Teste)");
forward ETeleport(playerid,Float:X,Float:Y,Float:Z,texttele[]);
public ETeleport(playerid, Float:X,Float:Y,Float:Z,texttele[]){
new nome[MAX_PLAYER_NAME],string[200];GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FFFEFE} %s Foi para{1C13E7} %s", nome,texttele);
SendClientMessageToAll(0xFFFFFFFF, string);
SetPlayerInterior(playerid,0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z+3);
}else{
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid,X,Y,Z);
}
SetCameraBehindPlayer(playerid);
return 1;}
Falta identar muito isso ae
@Edit:
string[200].
Com 128 da pra fazer tranquilo
Pequena otimizaзгo.
(
Porem nгo testado)
pawn Код:
Function :: ETeleport(playerid, Float:X, Float:Y, Float:Z, textele[])
{
static Nome[MAX_PLAYER_NAME],
String[128];
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(String, sizeof(String), "{FFFEFE} %s Foi para{1C13E7} %s", Nome, textele);
SendClientMessageToAll(0xFFFFFFFF, String);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
return SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z+3);
SetPlayerPos(playerid, X, Y, Z);
return 1;
}
#define Function::%0(%1) forward %0(%1); \
public %0(%1)
Re: Easy_Teleport -
SeV_ - 15.01.2013
@ vo arrumar aqui, ja edito
Re: Easy_Teleport -
HeyHoLetsGo - 15.01.2013
Sнmples... mas bom (:
Re: Easy_Teleport -
SeV_ - 15.01.2013
Quote:
Originally Posted by HeyHoLetsGo
Sнmples... mas bom (:
|
vlw!
Re: Easy_Teleport -
tonisantolia - 15.01.2013
Isso nгo seria um codigo ъtil?
Re: Easy_Teleport -
EduardoRFS - 15.01.2013
Quote:
Originally Posted by tonisantolia
Isso nгo seria um codigo ъtil?
|
Concordo
Re: Easy_Teleport -
arakuta - 15.01.2013
Simples, porйm como as pessoas nгo tem vontade de aprender, vai ajudar.
Re: Easy_Teleport -
@Riichard - 15.01.2013
Cadк а include?