07.07.2010, 07:37
Failure of ductile comands:
Lock/unlock
Lock/unlock
Код:
else if ( !strcmp( result, "rakinti", true ) ) { new slot = CheckIfPlayerHasSpawnedVehicle(playerid); if (slot < MAX_OWNABLE_VEHICLES) { new vehid = GetVehIdBySlot(playerid, slot); if (vehid < MAX_VEHICLES) { if (CheckPlayerDistanceToVehicle( 5.0, playerid, vehid )) { if (VehInfo[playerid][slot][vLock] < 1 ) return SendClientMessage( playerid, COLOR_GREY, " Jūs neturite uћrakto."); if (SVehInfo[vehid][vLock] > 0) { // Transporto priemonė yra uћrakinta SVehInfo[vehid][vLock] = 0; LockVehicleForPlayers(vehid, false); ShowInfoText (playerid, "~g~Transporto priemone atrakinta", 3000); } else { // Transporto priemonė yra atrakinta SVehInfo[vehid][vLock] = VehInfo[playerid][slot][vLock]; LockVehicleForPlayers(vehid, true); ShowInfoText ( playerid, "~r~Transporto priemone uzrakinta", 3000 ); } } else SendClientMessage( playerid, COLOR_GREY, " Jūs neesate љalia savo transporto priemonės." ); } else SendClientMessage( playerid, COLOR_RED, "KLAIDA" ); } else SendClientMessage( playerid, COLOR_GREY, " Jūs neturite iљsispawninę transporto priemonės." ); } else if ( !strcmp( result, "rakinti", true ) ) { new slot = CheckIfPlayerHasSpawnedVehicle(playerid); if (slot < MAX_OWNABLE_VEHICLES) { new vehid = GetVehIdBySlot(playerid, slot); if (vehid < MAX_VEHICLES) { if (CheckPlayerDistanceToVehicle( 5.0, playerid, vehid )) { if (VehInfo[playerid][slot][vLock] < 1 ) return SendClientMessage( playerid, COLOR_GREY, " Jūs neturite uћrakto."); if (SVehInfo[vehid][vLock] > 0) { // Transporto priemonė yra uћrakinta SVehInfo[vehid][vLock] = 0; LockVehicleForPlayers(vehid, false); ShowInfoText (playerid, "~g~Transporto priemone atrakinta", 3000); } else { // Transporto priemonė yra atrakinta SVehInfo[vehid][vLock] = VehInfo[playerid][slot][vLock]; LockVehicleForPlayers(vehid, true); ShowInfoText ( playerid, "~r~Transporto priemone uzrakinta", 3000 ); } } else SendClientMessage( playerid, COLOR_GREY, " Jūs neesate љalia savo transporto priemonės." ); } else SendClientMessage( playerid, COLOR_RED, "KLAIDA" ); } else SendClientMessage( playerid, COLOR_GREY, " Jūs neturite iљsispawninę transporto priemonės." ); }