[Ajuda] Colocar 3dtext com Nє ID encima do carro
#1



Algo parecido com isso, ajuda ai ._.

Game mode base muca, nгo qual code vocкs precisam mais tem algo assim:

PHP код:
if(strcmp(cmd"/ccar"true) == 0) {
        new 
pname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridpnamesizeof(pname));
        if(
IsPlayerAdmin(playerid)|| pAdmin[playerid] == 5){
            new 
tmp[256];
            new 
caridFloat:angprecocor1cor2;
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp)){
                
SendClientMessage(playeridCinza"(ERRO) Veiculo invбlido.");
                return 
1;
            }
            
carid strval(tmp);
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp)) {
                
SendClientMessage(playeridCinza"(ERRO): /ccar [id] [preзo] [cor1] [cor2]");
                return 
1;
            }
            
preco strval(tmp);
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp)) {
                
SendClientMessage(playeridCinza"(ERRO): /ccar [id] [preзo] [cor1] [cor2]");
                return 
1;
            }
            
cor1 strval(tmp);
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp)) {
                
SendClientMessage(playeridCinza"(ERRO): /ccar [id] [preзo] [cor1] [cor2]");
                return 
1;
            }
            
cor2 strval(tmp);
            if(
carid >= 400 && carid <= 611){
            if(
IsPlayerInAnyVehicle(playerid)){
                        new 
Float:XFloat:YFloat:Z;
                        
GetPlayerPos(playeridXYZ);
                        
GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
                        
format(stringsizeof(string), "carro%d.ini"proximocarro);
      [
COLOR="Red"]                  if(!dini_Exists(string)){
                        
dini_Create(string);
                        
dini_IntSet(string"Modelo"carid);
                        
dini_FloatSet(string"CordX"Float:X);
                        
dini_FloatSet(string"CordY"Float:Y);
                        
dini_FloatSet(string"CordZ"Float:Z);
                        
dini_FloatSet(string"Angulo"Float:ang);
                        
dini_IntSet(string"Cor1"cor1);
                        
dini_IntSet(string"Cor2"cor2);
                        
dini_IntSet(string"TDono"0);
                        
dini_Set(string"Dono""Ninguem");
                        
dini_IntSet(string"Preco"preco);
                        }[/
COLOR]
            
SetTimerEx("CriarVeiculo2",5000,false,"dffffdd",carid,X,Y,Z,ang,cor1,cor2);
                        
format(stringsizeof(string), "(INFO) Veiculo criado com sucesso!");
                        
SendClientMessage(playeridAzulstring);
                        return 
1;
            } else {
            
SendClientMessage(playeridVermelho"(ERRO) Vocк nгo estб em um veiculo!");
            }
            }
            else{
                
SendClientMessage(playeridCinza"(ERRO) Veiculo invбlido.");
                return 
1;
            }
        } else {
            
SendClientMessage(playeridCinza"(ERRO) Vocк nгo tem permissгo para isso");
            return 
1;
        }
    } 
Acredito que seja algo relacionado a esse code

Enfim, esclarecendo, queria que quando setasse um carro, aparece-se quele 3dtext encima do veiculo com o id do carro, valendo rep
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)