[Include] Easy_Teleport
#1

Olб Pessoal Fiz Esta sisteminha Simples Para Fazer Teleportes Rapidamente:


DOWNLOAD


Sistemas mais avancados й com os espertinhos aki em baixo \/ \/..
Reply
#2

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..
Reply
#3

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)
Reply
#4

@ vo arrumar aqui, ja edito
Reply
#5

Sнmples... mas bom (:
Reply
#6

Quote:
Originally Posted by HeyHoLetsGo
Посмотреть сообщение
Sнmples... mas bom (:
vlw!
Reply
#7

Isso nгo seria um codigo ъtil?
Reply
#8

Quote:
Originally Posted by tonisantolia
Посмотреть сообщение
Isso nгo seria um codigo ъtil?
Concordo
Reply
#9

Simples, porйm como as pessoas nгo tem vontade de aprender, vai ajudar.
Reply
#10

Cadк а include?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)