21.06.2013, 01:30
Nгo entendo muito bem ae nгo pessoal
Como ficaria essa stock aн sem erros?
Como ficaria essa stock aн sem erros?
if(!strcmp(cmdtext, "/rv", true))
{
new bool: v[MAX_VEHICLES];
for(new x = 1; GetVehicleModel(x); ++x)
{
v[x] = false;
for(new y, z = GetMaxPlayers(); y < z; ++i)
{
if(!IsPlayerInAnyVehicle(y) || !IsPlayerConnected(y))
continue;
if(IsPlayerInVehicle(y, x))
{
v[x] = true;
break;
}
}
if(!v[x])
SetVehicleToRespawn(x);
}
return true;
}
if(!strcmp(cmdtext, "/rv", true))
{
new bool: v[MAX_VEHICLES];
for(new x = 1; GetVehicleModel(x); ++x)
{
v[x] = false;
for(new y, z = GetMaxPlayers(); y < z; ++i)
{
if(!IsPlayerInAnyVehicle(y) || !IsPlayerConnected(y))
continue;
if(IsPlayerInVehicle(y, x) || GetVehicleModel(x) == /*ID DO TRAILER*/)
{
v[x] = true;
break;
}
}
if(!v[x])
SetVehicleToRespawn(x);
}
return true;
}
if(!strcmp(cmdtext, "/rv", true))
{
new
bool: v[MAX_VEHICLES];
for(new x = 1; GetVehicleModel(x): ++x)
{
v[x] = false;
for(new y, z = GetMaxPlayers(); y < z; y++)
{
if(!IsPlayerInVehicle(y) || !IsPlayerConnected(y))
continue;
if(IsPlayerInVehicle(y, x))
{
if((GetVehicleModel(x) >= 400) && (GetVehicleModel(x) <= 434) || (GetVehicleModel(x) >= 436) && (GetVehicleModel(x) <= 449) ||
(GetVehicleModel(x) >= 451) && (GetVehicleModel(x) <= 568) || (GetVehicleModel(x) >= 571) && (GetVehicleModel(x) <= 583) ||
(GetVehicleModel(x) >= 585) && (GetVehicleModel(x) <= 589) || (GetVehicleModel(x) >= 592) && (GetVehicleModel(x) <= 605) ||
(GetVehicleModel(x) == 609))
{
v[x] = true;
break;
}
}
}
if(!v[x])
SetVehicleToRespawn(x);
}
return true;
}
stock ResetarCarros() //Creditos: thegarfield
{
new carid;
static bool:inVeh;
for(new i; i < MAX_VEHICLES; i++ )
{
carid=GetVehicleModel(i);
if(carid==435||carid==450||carid==584||carid==591||carid==606||carid==607||carid==608||carid==610||carid==611)
{
continue;
}
inVeh = false;
for(new j; j < GetMaxPlayers(); j++ )
{
if(IsPlayerInVehicle( j, i ))
inVeh = true;
break;
}
if(!inVeh) SetVehicleToRespawn(i);
}
}