[Ajuda] Checar uso de slot
#3

Esse cуdigo vai checar se o ъltimo veнculo colocado na posiзгo estб prуximo da mesma.
PHP код:
enum gcsInfo {
    
Float:gcsX,
    
Float:gcsY,
    
Float:gcsZ,
    
gcsVID
};

static const 
gCarShowSlots[][gcsInfo] =
{
  {
1098.5062, -1754.922413.1775},
  {
1098.5096, -1757.925813.1775},
  {
1098.5859, -1760.869813.1764}
};

for(new 
0sizeof(gCarShowSlots); i++)
{
    if(!
GetVehicleModel(gCarShowSlots[i][gcsVID]) || GetVehicleDistanceFromPoint(gCarShowSlots[i][gcsVID], gCarShowSlots[i][gcsX], gCarShowSlots[i][gcsY], gCarShowSlots[i][gcsZ]) > 1.0)
    {
        
gCarShowSlots[i][gcsVID] = CreateVehicle...
    }

Reply


Messages In This Thread
Checar uso de slot - by Eddye - 22.01.2018, 00:03
Re: Checar uso de slot - by IlanZ - 22.01.2018, 01:00
Re: Checar uso de slot - by RodrigoMSR - 22.01.2018, 01:47
Re: Checar uso de slot - by Dayvison_ - 22.01.2018, 08:09
Re: Checar uso de slot - by Sky™ - 22.01.2018, 10:38

Forum Jump:


Users browsing this thread: 1 Guest(s)