[Ajuda] Comando
#1

Blz galera depois de muito tempo estou de volta ao forum XD

Vim com um problema que nгo to tendo cabeзa pra resolver depois de tanto tempo fora do samp kk embaixo segue o CMD e as especificaзхes e qual o problema que to tento.

Quote:

if(strcmp(cmdtext,"/megarampa",true) == 0)
{

new vehicleid = GetPlayerVehicleID(playerid);
new carrorampa = AddStaticVehicle(560,574.2104,538.2910,945.5897,0,-1,-1);
SetTimerEx("Destroircarro", 1000, false, "d", vehicleid);
DestroyVehicle(vehicleid);
format(string,sizeof string,"Noticia do Servidor: O jogador %s foi para a MEGA-RAMPA",pName);
SendClientMessageToAll(0xFFFFF2AA,string);
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
new Float:Angle;
GetPlayerFacingAngle(playerid, Angle);
LinkVehicleToInterior(carrorampa, 4);
SetPlayerPos(playerid,574.2104,538.2910,945.5897);
SetPlayerInterior(playerid, 4);
SetPlayerVirtualWorld(playerid,0);
PutPlayerInVehicle(playerid, carrorampa, 0);
ResetPlayerWeapons(playerid);
return 1;
}

Nгo sei se fiz certo mais tentei fazer o seguinte: O carro criado pelo comando ser destruнdo em 1000 milissegundos (1 segundo) depois que o jogador sai do carro, mais nгo esta funcionando o carro й criado mais nгo й destruнdo.
Reply


Messages In This Thread
Comando - by StrondaXxT - 04.08.2012, 16:12
AW: Comando - by billy the kid - 04.08.2012, 16:16
Re: Comando - by StrondaXxT - 04.08.2012, 16:27
Re: Comando - by Wallker - 04.08.2012, 16:30
Re: Comando - by StrondaXxT - 04.08.2012, 16:34
AW: Comando - by billy the kid - 04.08.2012, 16:38
Re: AW: Comando - by StrondaXxT - 04.08.2012, 16:42

Forum Jump:


Users browsing this thread: 4 Guest(s)