26.05.2014, 22:10
tenta dessa forma, nгo sei se irб dar certo apenas tentei mudar
pawn Код:
CMD:rc(playerid, params[])
{
SendAdminText(playerid, "/rc", params);
if(APlayerData[playerid][PlayerLevel] >= 1)
{
new bool:vehicle[MAX_VEHICLES];
for(new j = 1; GetVehicleModel(j); ++j)
{
vehicle[j] = false;
for(new i, p = GetMaxPlayers(); i < p; ++i)
{
if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i) )
continue;
if(IsPlayerInVehicle(i, j))
{
if(vehicle[j] = true && IsTrailerAttachedToVehicle(j) == true)
break;
}
}
if(!vehicle[j])
if(!IsTrailerAttachedToVehicle(j))
SetVehicleToRespawn(j);
else return 0;
}
}
else
return 0;
return 1;
}