pawn Код:
if (strcmp("/rtc", cmdtext, true, 10) == 0) {
{
new count = GetTickCount();
print("[debug] Play");
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))
{
vehicle[j] = true;
break;
}
}
if(!vehicle[j]) SetVehicleToRespawn(j);
}
printf("[debug] Time taken to execute respawn: %d", GetTickCount() - count);
return 1;
}