[AJU] Menu de Teleporte
#5

Vou dar Dois Exemplos Para Teleporte 1 Que so teleporta com o carro e otro com carro e APE

1° TELEPORTA SO COM O CARRO (BOM PARA SERVES QUE TEM /estacionamento)
pawn Код:
if(strcmp(cmdtext, "/stunt", true) == 0) { //COMANDO (CLARO NEE)
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);//ISSO FAZ QUE ELE SO TELEPORTE COM O VEICULO
SetVehiclePos(VehicleID,1911.1177,-2528.1465,13.5469);//;CORDENADAS DO TELEPORTE
SetVehicleZAngle(GetPlayerVehicleID(playerid), 89.0);//SETA O ANGULO DO VEICULO
SetVehicleHealth(GetPlayerVehicleID(playerid),999999); //DEIXA O VEICULO EM GDM
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para ( /stunt)", pname);
SendClientMessageToAll(COLOR_GREEN, string);
ResetPlayerWeapons(playerid); //RESETA AS ARMAS
SetPlayerInterior(playerid,0);
}
else{
SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!"); //
SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /est).");
}
return 1;
}
2° TELEPORTA COM O CARRO E APE
pawn Код:
if(strcmp(cmdtext, "/stunt", true) == 0) {
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s foi para /stunt", pname);
SendClientMessageToAll(COLOR_RED, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1911.1177,-2528.1465,13.5469);
SetPlayerFacingAngle(playerid,179.0);
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,1911.1177,-2528.1465,13.5469);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 89.0);
SetVehicleHealth(GetPlayerVehicleID(playerid),999999);
return 1;
}
Reply


Messages In This Thread
[AJU] Menu de Teleporte - by BiieL - 16.06.2010, 22:23
Re: [AJU] Menu de Teleporte - by Ricardo_Saddler - 16.06.2010, 23:07
Re: [AJU] Menu de Teleporte - by BiieL - 17.06.2010, 00:34
Re: [AJU] Menu de Teleporte - by Ricardo_Saddler - 17.06.2010, 10:34
Re: [AJU] Menu de Teleporte - by higoroliveira22 - 17.06.2010, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)