if(strcmp(cmd, "/arescar", true) == 0)
{
if(Offlineonline(playerid))
{
if(PlayerInfo[playerid][pAdmin] <= 8||Isagladmins(3,playerid))
{
new occcup[50];
for(new c=0; c<MAX_VEHICLES; c++)
{
new trailer = GetVehicleTrailer©;
if(trailer > 1)
{
for(new o=0; o<50; o++)
{
if(occcup[o] == 0){occcup[o] = trailer;break;}
}
}
}
for(new c=0; c<MAX_VEHICLES; c++)
{
if(!IsVehicleOccupied©)
{
new iii = 0;
for(new o=0; o<50; o++)
{
if(occcup[o] == c){iii++;}
}
if(iii == 0){SetVehicleToRespawn©;}
}
}
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string,sizeof(string),"* [%s]: {FFFFFF}Администратор зареспавнил незанятый игроками транспорт",sendername);
SendClientMessageToAll(COLOR_BLUE,string);
return 1;
}else{
SendClientMessage(playerid, COLOR_GRAD1, "Вам команда не доступна");
return 1;
}
}
return 1;
}
{
if(Offlineonline(playerid))
{
if(PlayerInfo[playerid][pAdmin] <= 8||Isagladmins(3,playerid))
{
new occcup[50];
for(new c=0; c<MAX_VEHICLES; c++)
{
new trailer = GetVehicleTrailer©;
if(trailer > 1)
{
for(new o=0; o<50; o++)
{
if(occcup[o] == 0){occcup[o] = trailer;break;}
}
}
}
for(new c=0; c<MAX_VEHICLES; c++)
{
if(!IsVehicleOccupied©)
{
new iii = 0;
for(new o=0; o<50; o++)
{
if(occcup[o] == c){iii++;}
}
if(iii == 0){SetVehicleToRespawn©;}
}
}
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string,sizeof(string),"* [%s]: {FFFFFF}Администратор зареспавнил незанятый игроками транспорт",sendername);
SendClientMessageToAll(COLOR_BLUE,string);
return 1;
}else{
SendClientMessage(playerid, COLOR_GRAD1, "Вам команда не доступна");
return 1;
}
}
return 1;
}