Deo skripte: Lider Dialog:
case 8: {
format( globalstring, sizeof globalstring, " "col_white"%s je pokrenuo respawn praznih organizacijskih vozila za 20 sekundi.", ImeIgraca( playerid ) );
OrgPoruka( PI[ playerid ][ xClan ], ZUTA, globalstring );
SetTimerEx( "RespawnORG", 5000, 0, "i", playerid );
}RespawnORG:
forward RespawnORG( playerid, vehicleid );
public RespawnORG( playerid, vehicleid ) {
if( vehicleid != INVALID_VEHICLE_ID ) {
if( TipVozila[ vehicleid ] != ORGANIZACIJSKO_VOZILO ) occupied[ vehicleid ] = true;
if( Parked[ vehicleid ] != -1 ) occupied[ vehicleid ] = true;
if( IsTrailerAttachedToVehicle( vehicleid ) ) occupied[ GetVehicleTrailer( vehicleid ) ] = true;
if( !occupied[ vehicleid ] && VehicleInfo[ vehicleid ][ vOrganization ] == PI[ playerid ][ xClan ] ) {
SetVehicleToRespawn( vehicleid );
} else occupied[ vehicleid ] = false;
}
if( vehicleid+1 < MAX_VEHICLES ) SetTimerEx( "RespawnORG", 10, false, "d", vehicleid+1 );
else ServerInfo[ RRVehicle ] = false, AdminPoruka( SBOJA, "RAC: "col_white"Respawn praznih organizacijskih vozila je zavrsen!" );
return 1;
}Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]Vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
