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)