[Ajuda]Teleporte
#1

alguem pode me passar a cordenada й que to acostumado com ela completa exemplo: 1481.4110,-1764.3804,18.7958

X: 1800.6090087891
Y: 1718.2277832031
X: 1130.1722412109
Reply
#2

1800.6090087891,1718.2277832031,1130.1722412109
Reply
#3

Quote:
Originally Posted by StrockerT
Посмотреть сообщение
alguem pode me passar a cordenada й que to acostumado com ela completa exemplo: 1481.4110,-1764.3804,18.7958

X: 1800.6090087891
Y: 1718.2277832031
X: 1130.1722412109
Uй, tб certa '-'
pawn Код:
if(strcmp(cmdtext, "/teleporte1", true) == 0)
{
   SetPlayerPos(playerid,1800.6090087891,1718.2277832031,1130.1722412109);
   SetPlayerInterior(playerid, interiorid); //caso seja dentro de um interior
   new string[70],name[MAX_PLAYER_NAME];
   GetPlayerName(playerid,name,sizeof(name));
   format(string,sizeof(string),"%s foi  para o /teleporte1",name);
   SendClientMessageToAll(-1,string);
   return 1;
}
Reply
#4

a й sу juntar й pq achei muito grande
Reply
#5

pawn Код:
if(!strcmp(cmdtext, "//teleporte", true)){
   if(!IsPlayerInAnyVehicle(playerid)){
       SetPlayerPos(playerid, 1800.6090087891, 1718.2277832031, 1130.1722412109);
       SetPlayerFacingAngle(playerid, 0.0);
       SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
   }
   else{
       new veh = GetPlayerVehicleID(playerid);
       SetVehiclePos(veh, 1800.6090087891, 1718.2277832031, 1130.1722412109);
       SetVehicleZAngle(veh, 0.0);
       LinkVehicleToInterior(veh, 0);
       SetVehicleVirtualWorld(veh, 0);
       PutPlayerInVehicle(playerid, veh, 0);
   }
   return SendClientMessage(playerid, 0x4FD200FF, "Vocк foi teleportado com sucesso");
}
pawn Код:
if(!strcmp(cmdtext, "//teleporte", true)){
   SetPlayerPos(playerid, 1800.6090087891, 1718.2277832031, 1130.1722412109);
   SetPlayerFacingAngle(playerid, 0.0);
   SetPlayerInterior(playerid, 0);
   SetPlayerVirtualWorld(playerid, 0);
   return 1;
}
pawn Код:
if(!strcmp(cmdtext, "//teleporte", true)){
   if(!IsPlayerInAnyVehicle(playerid)){
       SetPlayerPos(playerid, 1800.6090087891, 1718.2277832031, 1130.1722412109);
       SetPlayerFacingAngle(playerid, 0.0);
       SetPlayerInterior(playerid, 0);
       SetPlayerVirtualWorld(playerid, 0);
   }
   else{
       new veh = GetPlayerVehicleID(playerid);
       SetVehiclePos(veh, 1800.6090087891, 1718.2277832031, 1130.1722412109);
       SetVehicleZAngle(veh, 0.0);
       LinkVehicleToInterior(veh, 0);
       SetVehicleVirtualWorld(veh, 0);
       PutPlayerInVehicle(playerid, veh, 0);
   }
   return 1;
}
Escolha 1 [;
Reply
#6

Cara eu criei esse comando , vк se te ajuda:
pawn Код:
if(strcmp(cmdtext, "/pref", true) == 0) {
{
new pName[MAX_PLAYERS];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
SetPlayerPos(playerid,385.4674,173.9319,1008.3828); // Aqui tu poem a Pos
SetPlayerInterior(playerid, 3); // Aqui tu poem o interior se nгo tiver interior tu deleta essa linha inteira
SendClientMessage(playerid, Vermelho,"Vocк se teleportou e Gastou: R$:50,00");
GivePlayerMoney(playerid,-50); // Aqui o player Vai Perder 50 reais Se seu GM USA O GivePlayerGrana tu poem GivePlayerGrana
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Foi para a Prefeitura e Perdeu R$:50 || Vб tambem: {00FF00}( /pref )", pname);
SendClientMessageToAll(Amarelo, string);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)