[Pedido] Ligar Veiculo Para Andar !!
#5

tipo:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Engine[playerid]=0;
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext, "/virarchave", true) == 0)
{
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
Engine[playerid]=1;
return 1;
}
Estaria Certo??
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)