Dio skripte:
CMD:kradi( playerid, params[] ) {
//if( GetFactionType( playerid ) != ORG_TIP_BANDA ) return GRESKA( playerid, "Samo bande mogu koristiti ovu komandu." );
//if( GetFactionType( playerid ) != ORG_TIP_PD || GetFactionType( playerid ) != ORG_TIP_HITM || GetFactionType( playerid ) != ORG_TIP_MD ) {
if( KradjaGoriva[ playerid ] != 0 ) return GRESKA( playerid, "U toku je branje sacekajte 15 sekundi do sljedeceg branja!");
// if( askqInfo[ playerid ][ askqSended ] == true ) return GRESKA( playerid, "Vec si poslao pitanje, nije vam odgovoreno ili nisi pogledao." );
if( GetFactionType( playerid ) != ORG_TIP_BANDA || GetFactionType( playerid ) != ORG_TIP_HITM || GetFactionType( playerid ) != ORG_TIP_MAFIJA ) {
GRESKA( playerid, "Samo bande i mafije !");
return 1;
}
if( !IsPlayerInRangeOfPoint( playerid, 3.0, 1940.0424,-1774.7954,13.4302 ) &&
!IsPlayerInRangeOfPoint( playerid, 3.0, 1004.9145,-935.5276,42.1796) &&
!IsPlayerInRangeOfPoint( playerid, 3.0, 1004.9145,-935.5276,42.1796 ) ) return GRESKA( playerid, "Morate biti na tom mjestu da bi krali !");
GameTextForPlayer( playerid, "~w~Kradete, sacekajte malo..", 5000, 1);
TogglePlayerControllable( playerid, false );
ApplyAnimation( playerid, "BOMBER", "BOM_Plant_Loop",4.0,0,0,0,0,0,1 );
SetTimerEx( "Kradja", 15000, false, "d", playerid );
KradjaGoriva[ playerid ] = SetTimerEx( "sekundikradja", 15000, false, "d", playerid );
// SetTimerEx( "SlobodnoSada", 15000, false, "i", playerid );
//Marley_SetPlayerPos( playerid, RandomGrudvanje[ rand ][ 0 ], RandomGrudvanje[ rand ][ 1 ], RandomGrudvanje[ rand ][ 2 ] );
return true;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): // mod je ath
jel moze neko ako ima vremena npr na jednom checkpointu da se saceka 5 sec isto i na ostalim
mzd je slicno kao kod ovog posla
if( PlayerInfo[ playerid ][ xPosao ] == POSAO_PILOT && ( GetVehicleModel( GetPlayerVehicleID( playerid ) ) == 519 || GetVehicleModel( GetPlayerVehicleID( playerid ) ) == 553 ) ) {
if( LetLV[ playerid ] == 1 && GetPlayerState( playerid ) == PLAYER_STATE_DRIVER ) {
if( IsPlayerInRangeOfPoint( playerid, 5.0, 1847.4221, -2414.0798, 13.5547 ) ) {
TogglePlayerControllable( playerid, false );
GameTextForPlayer( playerid, "~w~sacekajte, putnici se ukrcavaju...", 5000, 5);
PilotTimer[ playerid ] = SetTimerEx( "PilotUtovar", 5000, false, "d", playerid );
GRELLA_SetPlayerCheckpoint( playerid, 1477.5233, 1395.1841, 10.8203, 5.0 );
LetLV[ playerid ] = 2;
StaroVreme[ playerid ] = gettime();
NovoVreme[ playerid ] = 90;
