VIP vehicle tag...
#1

So on my server vips have the ability to spawn a VIP car(Infernus),how can i make a red tag(message) on the vehicle to say VIP Car,example on Roleplay how it says on organization cars,and how to make the cars spawn in black color? REP +1 who helps.

My command to spawn the vehicle
PHP код:
COMMAND:vauto(playeridparams[])
{
    if (
APlayerData[playerid][VIPLevel] >= && APlayerData[playerid][LoggedIn] == true)
        {
        
SendAdminText(playerid"/vAuto"params);
        {
                
// Setup local variables
            
new Float:xFloat:yFloat:zFloat:rotvID;
            new 
engine,lights,alarm,doors,bonnet,boot,objective;
            
            
// Get the player's position and name
            
GetPlayerPos(playeridxyz);
            
GetPlayerFacingAngle(playeridrot);
            
            
// Spawn the vehicle based on the selection in the list with a random color
            // Also set max-fuel and save the model for the vehicle
            
vID Vehicle_Create(411xyzrotrandom(126), random(126), 600);
            
// Put the player in the vehicle
            
PutPlayerInVehicle(playeridvID0);
            
// Turn on the engine and lights
            
GetVehicleParamsEx(vIDenginelightsalarmdoorsbonnetbootobjective);
            
SetVehicleParamsEx(vID11alarmdoorsbonnetbootobjective);
            
// Store the player's current location and interior-id, otherwise anti-airbreak hack code could kick you
            
GetPlayerPos(playeridAPlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]);
            
APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid);
        }
    }
    return 
1;
}
COMMAND:vmotor(playeridparams[])
{
    if (
APlayerData[playerid][VIPLevel] >= && APlayerData[playerid][LoggedIn] == true)
        {
        
SendAdminText(playerid"/vmotor"params);
            
// Setup local variables
        
new Float:xFloat:yFloat:zFloat:rotvID;
        new 
engine,lights,alarm,doors,bonnet,boot,objective;
        
        
// Get the player's position and name
        
GetPlayerPos(playeridxyz);
        
GetPlayerFacingAngle(playeridrot);
        
        
// Spawn the vehicle based on the selection in the list with a random color
        // Also set max-fuel and save the model for the vehicle
        
vID Vehicle_Create(522xyzrotrandom(126), random(126), 600);
        
// Put the player in the vehicle
        
PutPlayerInVehicle(playeridvID0);
        
// Turn on the engine and lights
        
GetVehicleParamsEx(vIDenginelightsalarmdoorsbonnetbootobjective);
        
SetVehicleParamsEx(vID11alarmdoorsbonnetbootobjective);
        
// Store the player's current location and interior-id, otherwise anti-airbreak hack code could kick you
        
GetPlayerPos(playeridAPlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]);
        
APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid);
    }    
    return 
1;

Reply
#2

Use Create3DTextLabel and Attach3DTextLabelToVehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)