[Ajuda] Comando n funciona !?
#1

Code:
CMD:ccor(playerid, params[])
{
	if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Branco, "Vocк nгo tem carro maluco !");
    if(Player[playerid][pAdmin] == 0) return SendClientMessage(playerid, Amarelo, "Comando somente para admins!");
	new NomeCarro[30], cor, cor2, rola;
	if(sscanf(params, "uu", cor, cor2)) return SendClientMessage(playerid, -1, "Use: /ccor [ID] [ID]");
	rola = GetModelVehicle(NomeCarro);
 	ChangeVehicleColor ( rola, cor, cor2 ) ;
	return 1;
}
fiz um comando pra trocar a cor do carro , nгo ta funcionando nгo sei onde tб o erro !
Reply
#2

PHP Code:
  ChangeVehicleColor(GetPlayerVehicleID(playerid), corcor2); 
Reply
#3

PHP Code:
CMD:pintar(playeridparams[])
{
    new 
cor1cor2;
    if(!
Player[playerid][pAdmin])
        return 
false;
    if(!
IsPlayerConnected(playerid))
        return 
SendClientMessage(playerid, -1"* Vocк nгo estб logado.");
    if(
sscanf(params"dd"cor1cor2))
        return 
SendClientMessage(playerid, -1"* Use: /Pintar (cor1) (cor2)");
    if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER
        
SendClientMessage(playerid, -1"* Vocк trocou a cor do seu veнculo."), ChangeVehicleColor(GetPlayerVehicleID(playerid), cor1cor2);
    else
        
SendClientMessage(playerid, -1"* Vocк precisa ser o motorista.");
    return 
true;

Reply
#4

Quote:
Originally Posted by ipsLuan
View Post
PHP Code:
  ChangeVehicleColor(GetPlayerVehicleID(playerid), corcor2); 
Obrigado +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)