[Ajuda] Warning Irritante
#5

if( !strcmp( cmd, "/veiculo", true ))
{
if( !IsPlayerInAnyVehicle( playerid ))
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Vocк nгo estб em um veнculo !" );
return 1;
}
ShowPlayerDialog(playerid, VEICULO_CMDS, DIALOG_STYLE_LIST, "» Seu Veiculo","» Trancar\n» Destrancar\n» Farol Ligado\n» Farol Desligado","Selecionar","Cancelar");
SendClientMessage(playerid, COLOR_AMARELO, "» Mais opзхes estгo sendo feitas.. Aguarde!");
return 1;
} // Linha do comando
// ----------------------------------------------------------------------------------------------- //
if(dialogid == VEICULO_CMDS)
{
if(response)
{
if(listitem == 0)
{
new
v = GetPlayerVehicleID( playerid )
;
new
Float:i_x, Float:i_y, Float:i_z
;
GetPlayerPos( playerid, i_x, i_y, i_z );
{
foreach(Player, i )
{
if( i != playerid )
{
SetVehicleParamsForPlayer( v, i, 0, 1 );
}
}
SendClientMessage(playerid, COLOR_AMARELO,"| INFO | Veнculo trancado!");
return 1;
}
}
if(listitem == 1)
{
foreach(Player, i )
{
SetVehicleParamsForPlayer( playerid, i, 0, 0 );
}
SendClientMessage( playerid, COLOR_AMARELO, "| INFO | Veнculo destrancado!" );
//PlayerPlaySound( playerid, 1056, i_x, i_y, i_z );
return 1;
} // Trancar veiculo ou destrancar .
}
if(listitem == 2) // aqui a linha do warning .
{
new mot, lu, alar, por, cap, porma, ob;
new carroa = GetPlayerVehicleID( playerid );
if( carroa != INVALID_VEHICLE_ID )
{
GetVehicleParamsEx( carroa, mot, lu, alar, por, cap, porma, ob );
SetVehicleParamsEx( carroa, mot, VEHICLE_PARAMS_ON, alar, por, cap, porma, ob );
SendClientMessage( playerid, COLOR_SISTEMA, "| INFO | Farol Ligado com sucesso!" );
//return 1;
}
}
if(listitem == 3)
{
new mot, lu, alar, por, cap, porma, ob;
new carroa = GetPlayerVehicleID( playerid );
if( carroa != INVALID_VEHICLE_ID )
{
GetVehicleParamsEx( carroa, mot, lu, alar, por, cap, porma, ob );
SetVehicleParamsEx( carroa, mot, VEHICLE_PARAMS_OFF, alar, por, cap, porma, ob );
SendClientMessage( playerid, COLOR_SISTEMA, "| INFO | Farol desligado com sucesso!" );
return 1;
}
}
}
Reply


Messages In This Thread
Warning Irritante - by GuiKommander - 20.01.2017, 20:15
Re: Warning Irritante - by IlanZ - 20.01.2017, 20:18
Re: Warning Irritante - by RazorGuigo - 20.01.2017, 20:20
Re: Warning Irritante - by Cheleber_Pausini - 20.01.2017, 20:22
Re: Warning Irritante - by GuiKommander - 20.01.2017, 20:23
Re: Warning Irritante - by RazorGuigo - 20.01.2017, 20:25
Re: Warning Irritante - by FallweN - 20.01.2017, 20:26
Re: Warning Irritante - by Whoo - 20.01.2017, 20:27
Re: Warning Irritante - by GuiKommander - 20.01.2017, 20:34
Re: Warning Irritante - by Andersonsouza - 21.01.2017, 02:59

Forum Jump:


Users browsing this thread: 3 Guest(s)