- 0
Sign in to follow this
Followers
0
Как на команду наложить звук?
Asked by
F1re
,
Question
Лучший ответ
@Timur_Top по коду она будет работать только на самолетах.
Замените ее следующей командой:
CMD:engine(playerid) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 0; new vehicleid = GetPlayerVehicleID(playerid); if(IsAPlane(vehicleid)) return 0; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,(Engine[vehicleid])?(false):(true),lights,alarm,doors,bonnet,boot,objective); Engine[vehicleid] = (Engine[vehicleid])?(false):(true); //звук return 1; }
CMD:engine(playerid) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 0; new vehicleid = GetPlayerVehicleID(playerid); if(IsAPlane(vehicleid)) return 0; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,(Engine[vehicleid])?(false):(true),lights,alarm,doors,bonnet,boot,objective); Engine[vehicleid] = (Engine[vehicleid])?(false):(true); //звук return 1; }
This topic is now closed to further replies.
Sign in to follow this
Followers
0
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By huri
Помогите с плагином, который будет отключать игрока от сервера если он умер более 3 раз за 5 секунд
-
Posted · Report post
Как на данную команду наложить свой звук(url) ?
CMD:engine(playerid)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 0;
new vehicleid = GetPlayerVehicleID(playerid);
if(!IsAPlane(vehicleid)) return 0;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,(Engine[vehicleid])?(false):(true),lights,alarm,doors,bonnet,boot,objective);
Engine[vehicleid] = (Engine[vehicleid])?(false):(true);
return 1;
}
Share this post
Link to post